mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
delta: use --diff-filter on the git diff-tree invokes
Suggested-by: Dave Reisner
This commit is contained in:
parent
37093a21a6
commit
1568d710cd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user