From 4aef465e6b73ca6cf988a2bb01444bad6e4af689 Mon Sep 17 00:00:00 2001 From: Matt Hickman Date: Thu, 16 May 2019 14:51:38 -0700 Subject: [PATCH] Change format of _GIT_SINCE in help The format _GIT_SINCE is what `git --since` takes in which is YYYY-MM-DD. Ref: https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History --- README.md | 4 ++-- git-quick-stats | 2 +- git-quick-stats.1 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ab94ca2..c48bba7 100644 --- a/README.md +++ b/README.md @@ -92,8 +92,8 @@ Possible arguments in short and long form: You can set variable `_GIT_SINCE`, `_GIT_UNTIL` and limit the git log ```bash -export _GIT_SINCE="2017-20-01" -export _GIT_UNTIL="2017-22-01" +export _GIT_SINCE="2017-01-20" +export _GIT_UNTIL="2017-01-22" ``` then run `git quick-stats` (affect all stats, except "My daily status" and "Git changelogs" ) diff --git a/git-quick-stats b/git-quick-stats index 3f2c406..8ff0b27 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -111,7 +111,7 @@ OPTIONS ADDITIONAL USAGE You can set _GIT_SINCE and _GIT_UNTIL to limit the git time log - ex: export _GIT_SINCE=\"2017-20-01\" + ex: export _GIT_SINCE=\"2017-01-20\" You can set _GIT_LIMIT for limited output log ex: export _GIT_LIMIT=20 You can exclude a directory from the stats by using pathspec diff --git a/git-quick-stats.1 b/git-quick-stats.1 index 4d8757a..faa3e21 100644 --- a/git-quick-stats.1 +++ b/git-quick-stats.1 @@ -102,7 +102,7 @@ display this help text in the terminal You can set _GIT_SINCE and _GIT_UNTIL to limit the git time log, example: .IP .PP -.B export _GIT_SINCE="2017\-20\-01" +.B export _GIT_SINCE="2017\-01\-20" .IP .PP You can set _GIT_LIMIT for limited output log, example: