git2r (version 0.21.0)

show,git_repository-method: Brief summary of repository

Description

Brief summary of repository

Usage

# S4 method for git_repository
show(object)

Arguments

object

The repository object

Value

None (invisible 'NULL').

Examples

Run this code
# NOT RUN {
## Initialize a temporary repository
path <- tempfile(pattern="git2r-")
dir.create(path)
repo <- init(path)
config(repo, user.name="Alice", user.email="alice@example.org")

## Brief summary of the repository
repo

## Create and commit a file
writeLines("Hello world!", file.path(path, "example.txt"))
add(repo, "example.txt")
commit(repo, "First commit message")

## Brief summary of the repository
repo
# }

Run the code above in your browser using DataLab