From 0bf6b946b613627eb971cb99115ba1c091d67df9 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 23 Jun 2020 16:22:47 -0700 Subject: git-changes: don't show bot commits --- git-changes | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'git-changes') diff --git a/git-changes b/git-changes index a964d0f..ce24cb9 100755 --- a/git-changes +++ b/git-changes @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# +# Show a summary of changes, eg: 'git changes 2 src' shows two days of changes +# in the 'src' directory. +# re='^[0-9]+$' if [[ $1 =~ $re ]] then @@ -7,4 +11,6 @@ then else days='1' fi -git shortlog --since=$(date -d "-${days}days" +%s) "$@" +git log --invert-grep --author="Bot" \ + --format=short --since=$(date -d "-${days}days" +%s) "$@" \ + | git shortlog -- cgit v1.2.3