Added detailed stats for today grouped by user. #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactored the
detailedGitStats
function into two functions.detailedGitStats
function has been renamed to_detailedGitStats
._detailedGitStats
function is almost identical to theold function, except it now doesn't output a title and it takes any
number of arguments that get injected into the
git log
command (viathe
$@
variable). This increases its flexibility, so that it can beused in other places without duplicating code.
detailedGitStats
function now outputs a title and calls the_detailedGitStats
function with the$_since
and$_until
variables as parameters (these are passed to the
git log
command asdescribed above).
Added the
detailedGitStatsTodayByAuthor
function._detailedGitStats
function to do this by passing in the--since
flag that get passed togit log
.Added the
detailedGitStatsTodayByAuthor
to the interactive menu.Added the
detailedGitStatsTodayByAuthor
to the non-interactive list ofoptions that can be given as a command line argument.
Added the
detailedGitStatsTodayByAuthor
to the list of possiblearguments.
Tested options 1 and 2 with this repository and output is behaving as
expected.
Tested options 1 and 2 with
_GIT_SINCE
and_GIT_UNTIL
and output isbehaving as expected.
This should resolve #3.