aboutsummaryrefslogtreecommitdiff
path: root/scripts/delta
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-12-11 15:25:52 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-12-11 15:32:34 +0100
commit1568d710cd329184566cf08eeb7974459179b545 (patch)
tree55117b3b91ed0fce2a963e52fd433d91362e2d78 /scripts/delta
parent37093a21a6f5dd0233f2a92af5ae69d8417b8a51 (diff)
delta: use --diff-filter on the git diff-tree invokes
Suggested-by: Dave Reisner
Diffstat (limited to 'scripts/delta')
-rwxr-xr-xscripts/delta4
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