diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-12-04 22:19:10 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-12-04 22:19:10 +0300 |
commit | 2e5adec97a65ce8c2c803b9e1cbb1c0d067e7e47 (patch) | |
tree | eacdbdd6d3972bef4437457c7cebafac0c4d4c68 /t | |
parent | 4672123fe5cb629d2a261245fd0a2e003ef35ea3 (diff) | |
parent | 348d4f2fc5d3c4f7ba47079b96676b4e2dd831fc (diff) |
Merge branch 'jk/filter-branch-no-index'
Speed up filter-branch for cases where we only care about rewriting
commits, not tree data.
* jk/filter-branch-no-index:
filter-branch: skip index read/write when possible
Diffstat (limited to 't')
-rwxr-xr-x | t/perf/p7000-filter-branch.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/perf/p7000-filter-branch.sh b/t/perf/p7000-filter-branch.sh new file mode 100755 index 0000000000..15ee5d1d53 --- /dev/null +++ b/t/perf/p7000-filter-branch.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +test_description='performance of filter-branch' +. ./perf-lib.sh + +test_perf_default_repo +test_checkout_worktree + +test_expect_success 'mark bases for tests' ' + git tag -f tip && + git tag -f base HEAD~100 +' + +test_perf 'noop filter' ' + git checkout --detach tip && + git filter-branch -f base..HEAD +' + +test_done |