commit | R Documentation |
Git Commit Utilities
get_commit_msgs(sha = NULL, n = 1L)
scrape_commits(n)
git_unstage(file = NULL)
git_reset_soft(n = 1L)
git_uncommit()
git_reset_hard()
git_diffcommits(top = 1L, n = 2L)
sha |
|
n |
|
file |
|
top |
|
NULL
... invisibly.
A list containing commit message entries.
The sha
and author
of each commit is added as attributes.
get_commit_msgs()
: gets the commit messages corresponding to the commit sha
.
sha
can be character(n)
, but must be valid SHAs
corresponding to commits in the repository.
scrape_commits()
: scrapes n
commit messages for useful change log commits
to be used to create a NEWS.md
.
git_unstage()
: un-stages a file from the index to the working directory.
Default un-stages all files.
git_reset_soft()
: un-commits the most recently committed file(s) and
add them to the staging area.
git_uncommit()
: un-commits the most recently committed
file(s) and add them to the staging area.
Wrapper around git_reset_soft()
git_reset_hard()
: git reset --hard origin/<branch>
.
git_diffcommits()
: gets the diff of the corresponding 2 commits.
Order matters!
## Not run:
get_commit_msgs()
get_commit_msgs(n = 3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.