Closed langford closed 6 years ago
Thanks for the PR. Fixed in https://github.com/kamranahmedse/git-standup/pull/94
# Show all the commits after October 01, 2018
git standup -A "2018-10-01 00:00"
# Show all the commits till before October 01, 2018
git standup -B "2018-10-01 00:00"
# Show the commits between September 20 and September 30
git standup -A "2018-09-20 00:00:00" -B "2018-09-30 23:59"
Currently, the "days ago" option does not act in a manner fit for the purpose of "standups" where some people work. The -d flag uses 24 hour periods, not calendar days. Standup meetings where some people work vary by time of day so that is insufficient for them: They need to report all activity since their last standup.
If you run the tool at 11 in the morning, -d 2 will miss commits you did at 7 am two days prior
Now you can exactly specify a start date through an environment variable. (You can already specify an exact end date via the "UNTIL_OPT" environment variable, so no changes were made there). For uniformity purposes, this PR adds this SINCE_DATE parameterization the same way GIT_DATE_FORMAT is specified.
Example usage of SINCE_DATE (complex, such as might be used in a script):
Example usage (simple):