diff options
Diffstat (limited to 't/perf')
| -rwxr-xr-x | t/perf/p1500-graph-walks.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/t/perf/p1500-graph-walks.sh b/t/perf/p1500-graph-walks.sh index 439a448c2e..e14e7620cc 100755 --- a/t/perf/p1500-graph-walks.sh +++ b/t/perf/p1500-graph-walks.sh @@ -35,11 +35,16 @@ test_perf 'ahead-behind counts: git tag' ' xargs git tag -l --format="%(ahead-behind:HEAD)" <tags ' -test_perf 'ahead-behind counts: git rev-list' ' - for r in $(cat refs) - do - git rev-list --count "HEAD..$r" || return 1 - done +test_perf 'contains: git for-each-ref --merged' ' + git for-each-ref --merged=HEAD --stdin <refs +' + +test_perf 'contains: git branch --merged' ' + xargs git branch --merged=HEAD <branches +' + +test_perf 'contains: git tag --merged' ' + xargs git tag --merged=HEAD <tags ' test_done |
