delta: use --diff-filter on the git diff-tree invokes

Suggested-by: Dave Reisner
This commit is contained in:
Daniel Stenberg 2018-12-11 15:25:52 +01:00
parent 37093a21a6
commit 1568d710cd
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 2 additions and 2 deletions

View File

@ -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