summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <bsima@groq.com>2020-11-16 07:43:58 -0800
committerBen Sima <bsima@groq.com>2020-12-14 10:09:50 -0800
commit82e4054abe0443f735bf585e0165bb539f58034d (patch)
tree8742587b03561c1768cfcc33c316c3102d498a34
parentcab52684b35b8231b9bc995f443d0ff1bde3c7f6 (diff)
git changes changes
-rwxr-xr-xgit-changes8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-changes b/git-changes
index d048f36..1b6b430 100755
--- a/git-changes
+++ b/git-changes
@@ -3,7 +3,7 @@
# Show a summary of changes, eg: 'git changes 2 src' shows two days of changes
# in the 'src' directory.
#
-re='^[0-9]+$'
+re='^[0-9]+'
if [[ $1 =~ $re ]]
then
days=${1}
@@ -11,6 +11,6 @@ then
else
days='1'
fi
-git log --invert-grep --author="Bot" \
- --format=short --since=$days.days.ago "$@" \
- | git shortlog
+git shortlog \
+ --invert-grep --author="Bot" \
+ --since=$days.days "$@"