From 1568d710cd329184566cf08eeb7974459179b545 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 11 Dec 2018 15:25:52 +0100 Subject: delta: use --diff-filter on the git diff-tree invokes Suggested-by: Dave Reisner --- scripts/delta | 4 ++-- 1 file 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 -- cgit v1.2.3