count_words: Counts the number of new and deleted words between two git...

Description Usage Arguments Value Examples

View source: R/count_words.R

Description

Calls git diff from the shell in porcelain mode to calculate the number of new and deleted words between two commits.

Usage

1
count_words(commit_old, commit_new, repo)

Arguments

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.

Value

List containing two elements: number of new words, and number of deleted words.

Examples

1
count_words(commit_old="35c964f569ce26ab2a9b35469252730c854e6cb2",commit_new="849b280bccd4e3b294bc4a8a67f9f80184009edf",repo="~/repositories/project/")

tcspears/gitwords documentation built on June 9, 2021, 1:34 a.m.