show-git_reflog_entry-method: Brief summary of a reflog entry

Description Usage Arguments Value Examples

Description

Brief summary of a reflog entry

Usage

1
2
## S4 method for signature 'git_reflog_entry'
show(object)

Arguments

object

The reflog entry object

Value

None (invisible 'NULL').

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
## Initialize a temporary repository
path <- tempfile(pattern="git2r-")
dir.create(path)
repo <- init(path)

## Create a user and commit a file
config(repo, user.name="Alice", user.email="[email protected]")
writeLines("Hello world!", file.path(path, "example.txt"))
add(repo, "example.txt")
commit(repo, "First commit message")

## View repository HEAD reflog
reflog(repo)

## End(Not run)

git2r documentation built on July 20, 2017, 1:03 a.m.