Description Usage Arguments Value Examples
Convenience wrapper around head-methods
from
git2r
.
1 | git_HEAD(repo = ".")
|
repo |
Path to a Git repo. If unspecified, current working directory is checked to see if it is or is inside a Git repo. |
A list with components:
branch_name
the name and ...
branch_type
type (local vs. remote) of the branch whose tip HEAD currently points to
head_sha
the SHA and ...
head_commit
git_commit
object for the
specific commit HEAD points to
repo
associated git_repository
object
git_branch
associated git_branch
object
or NULL
if HEAD
does not exist.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.