diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-03-28 20:52:22 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-28 20:52:22 (GMT) |
commit | bfee58c0a59b2d84431b41052b774f5037cebe21 (patch) | |
tree | 7867ba27caa9739514956f4b8d3cc502984a7c3c /t/perf | |
parent | 2b69d3116ffb4a800c408b8cb0b508ca1886ea84 (diff) | |
parent | 32da7467ebc099e6032590773827884b704980cf (diff) | |
download | git-bfee58c0a59b2d84431b41052b774f5037cebe21.zip git-bfee58c0a59b2d84431b41052b774f5037cebe21.tar.gz git-bfee58c0a59b2d84431b41052b774f5037cebe21.tar.bz2 |
Merge branch 'dp/filter-branch-prune-empty' into maint
"git filter-branch --prune-empty" drops a single-parent commit that
becomes a no-op, but did not drop a root commit whose tree is empty.
* dp/filter-branch-prune-empty:
p7000: add test for filter-branch with --prune-empty
filter-branch: fix --prune-empty on parentless commits
t7003: ensure --prune-empty removes entire branch when applicable
t7003: ensure --prune-empty can prune root commit
Diffstat (limited to 't/perf')
-rwxr-xr-x | t/perf/p7000-filter-branch.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/perf/p7000-filter-branch.sh b/t/perf/p7000-filter-branch.sh index 15ee5d1..b029586 100755 --- a/t/perf/p7000-filter-branch.sh +++ b/t/perf/p7000-filter-branch.sh @@ -16,4 +16,9 @@ test_perf 'noop filter' ' git filter-branch -f base..HEAD ' +test_perf 'noop prune-empty' ' + git checkout --detach tip && + git filter-branch -f --prune-empty base..HEAD +' + test_done |