mirror of
https://github.com/curl/curl.git
synced 2025-09-17 17:42:49 +03: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
|
# Number of files in git
|
||||||
$afiles=`git ls-files | wc -l`;
|
$afiles=`git ls-files | wc -l`;
|
||||||
$deletes=`git diff-tree -r --summary origin/master $start | grep -c create`;
|
$deletes=`git diff-tree --diff-filter=A -r --summary origin/master $start | wc -l`;
|
||||||
$creates=`git diff-tree -r --summary origin/master $start | grep -c delete`;
|
$creates=`git diff-tree --diff-filter=D -r --summary origin/master $start | wc -l`;
|
||||||
|
|
||||||
# Time since that tag
|
# Time since that tag
|
||||||
$tagged=`git for-each-ref --format="%(refname:short) | %(taggerdate:unix)" refs/tags/* | grep ^$start | cut "-d|" -f2`; # unix timestamp
|
$tagged=`git for-each-ref --format="%(refname:short) | %(taggerdate:unix)" refs/tags/* | grep ^$start | cut "-d|" -f2`; # unix timestamp
|
||||||
|
|
Loading…
Reference in New Issue
Block a user