| git_commit_count_since | R Documentation |
Returns the number of commits on HEAD dated on or after
since_date, and 0L for anything that is not a git
working tree (plain directories, missing paths). Worktrees and
dubious-ownership repositories are handled: a git rev-parse
check runs first, and git's non-zero exits never leak as warnings.
The counting primitive behind heartbeat, exported for
downstream tooling that composes its own activity reports.
git_commit_count_since(repo_dir, since_date)
repo_dir |
Path to a repository. |
since_date |
A |
Integer commit count.
# A plain directory is not a repository: counts as zero
git_commit_count_since(tempdir(), Sys.Date() - 7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.