diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-12-11 15:25:52 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-12-11 15:32:34 +0100 |
commit | 1568d710cd329184566cf08eeb7974459179b545 (patch) | |
tree | 55117b3b91ed0fce2a963e52fd433d91362e2d78 /scripts | |
parent | 37093a21a6f5dd0233f2a92af5ae69d8417b8a51 (diff) | |
download | curl-1568d710cd329184566cf08eeb7974459179b545.tar.gz |
delta: use --diff-filter on the git diff-tree invokes
Suggested-by: Dave Reisner
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/delta | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/delta b/scripts/delta index 779ab50d9..3318a58ef 100755 --- a/scripts/delta +++ b/scripts/delta @@ -64,8 +64,8 @@ $noptions=$aoptions - $boptions; # Number of files in git $afiles=`git ls-files | wc -l`; -$deletes=`git diff-tree -r --summary origin/master $start | grep -c create`; -$creates=`git diff-tree -r --summary origin/master $start | grep -c delete`; +$deletes=`git diff-tree --diff-filter=A -r --summary origin/master $start | wc -l`; +$creates=`git diff-tree --diff-filter=D -r --summary origin/master $start | wc -l`; # Time since that tag $tagged=`git for-each-ref --format="%(refname:short) | %(taggerdate:unix)" refs/tags/* | grep ^$start | cut "-d|" -f2`; # unix timestamp |