getGitInfo {envDocument}R Documentation

Get git repository information for a script

Description

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).

Usage

getGitInfo(scriptpath = NA)

Arguments

scriptpath

Path to script (optional, defaults to calling script from get_scriptPath())

Details

Requires that git2r be installed.

Examples

git_info <- getGitInfo()


[Package envDocument version 2.4.1 Index]