git_stamp: Get git stamp (commit and branch) for a repository

Description Usage Arguments Value

View source: R/git_stamp.R

Description

The function returns the latest git commit and branch for the repo specified in repo or the current working directory if unspecified. Git is needed for the command to run. The functions makes it possible to include the latest git commit and branch in a run to be able to know exactly which code where used.

Usage

1
git_stamp(repo = getwd())

Arguments

repo

Git repo directory. If unspecified, then the current working directory is used.

Value

character vector with latest commit and branch


repmis documentation built on May 19, 2017, 12:56 p.m.

Search within the repmis package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.