From: Daniel Stenberg Date: Tue, 11 Dec 2018 14:25:52 +0000 (+0100) Subject: delta: use --diff-filter on the git diff-tree invokes X-Git-Tag: curl-7_63_0~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1568d710cd329184566cf08eeb7974459179b545;p=curl delta: use --diff-filter on the git diff-tree invokes Suggested-by: Dave Reisner --- 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