Description Usage Arguments Value Examples
Calls git diff from the shell in porcelain mode to calculate the number of new and deleted words between two commits.
1 | count_words(commit_old, commit_new, repo)
|
commit_old |
Character string giving the previous commit ID |
commit_new |
Character string giving the current commit ID |
repo |
Character string giving the relative or absolute path to the git repository. |
List containing two elements: number of new words, and number of deleted words.
1 | count_words(commit_old="35c964f569ce26ab2a9b35469252730c854e6cb2",commit_new="849b280bccd4e3b294bc4a8a67f9f80184009edf",repo="~/repositories/project/")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.