From 9910307fd8e714806bcbda7e66d4b08deb0f1987 Mon Sep 17 00:00:00 2001 From: simopunkc Date: Mon, 1 Apr 2024 09:06:32 +0700 Subject: [PATCH] Without commas ( , ), the "--since" and "--until" parameter options in the command will have no effect. Updated documentation on how to properly use the since and until parameters. --- README.md | 4 ++-- bin/git-stats | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4d2c158..95d8f82 100644 --- a/README.md +++ b/README.md @@ -114,8 +114,8 @@ Options: Examples: $ git-stats # Default behavior (stats in the last year) $ git-stats -l # Light mode - $ git-stats -s '1 January 2012' # All the commits from 1 January 2012 to now - $ git-stats -s '1 January 2012' -u '31 December 2012' # All the commits from 2012 + $ git-stats -s '1 January, 2012' # All the commits from 1 January 2012 to now + $ git-stats -s '1 January, 2012' -u '31 December, 2012' # All the commits from 2012 Your commit history is kept in ~/.git-stats by default. You can create ~/.git-stats-config.js to specify different defaults. diff --git a/bin/git-stats b/bin/git-stats index a8ed15b..1c02c1c 100755 --- a/bin/git-stats +++ b/bin/git-stats @@ -84,8 +84,8 @@ new Tilda(`${__dirname}/../package.json`, { , examples: [ "git-stats # Default behavior (stats in the last year)" , "git-stats -l # Light mode" - , "git-stats -s '1 January 2012' # All the commits from 1 January 2012 to now" - , "git-stats -s '1 January 2012' -u '31 December 2012' # All the commits from 2012" + , "git-stats -s '1 January, 2012' # All the commits from 1 January 2012 to now" + , "git-stats -s '1 January, 2012' -u '31 December, 2012' # All the commits from 2012" ] , notes: "Your commit history is kept in ~/.git-stats by default. You can create ~/.git-stats-config.js to specify different defaults." }).main(action => {