getGitInfo {envDocument} | R Documentation |
getGitInfo
locates the git repository for the calling script
(if any) and retrieves relevant informaiton such as last commit, status
(e.g. modified since last commit) and tag (if any).
getGitInfo(scriptpath = NA)
scriptpath |
Path to script (optional, defaults to calling script from get_scriptPath()) |
Requires that git2r
be installed.
git_info <- getGitInfo()