From 82e4054abe0443f735bf585e0165bb539f58034d Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 16 Nov 2020 07:43:58 -0800 Subject: git changes changes --- git-changes | 8 ++++---- 1 file 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 "$@" -- cgit v1.2.3