coerce-git_commit-method {git2r} | R Documentation |
data.frame
The commit is coerced to a data.frame
from |
The commit |
The data.frame
have the following columns:
The 40 character hexadecimal string of the SHA-1
the short "summary" of the git commit message.
the full message of a commit
full name of the author
email of the author
time when the commit happened
data.frame
## Not run: ## Initialize a temporary repository path <- tempfile(pattern="git2r-") dir.create(path) repo <- init(path) ## Create a user config(repo, user.name="Alice", user.email="alice@example.org") ## Create a file and commit writeLines("Example file", file.path(path, "example.txt")) add(repo, "example.txt") c1 <- commit(repo, "Commit message") ## Coerce the commit to a data.frame df <- as(c1, "data.frame") df ## End(Not run)