diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-06-27 09:56:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-27 09:56:24 -0700 |
commit | df5a925523e627cd20ce11f570d418dfae2ac7d8 (patch) | |
tree | 58760aa7f4f5bf9e05223aa9a73728f3892b5b5c /t/t5310-pack-bitmaps.sh | |
parent | fbb4138cb2e6b77d1d8386f336e7813fcfd3cb02 (diff) | |
parent | fb85db84dcc36dcc3cdd5fc744280334bbe8eb47 (diff) | |
download | git-df5a925523e627cd20ce11f570d418dfae2ac7d8.tar.gz git-df5a925523e627cd20ce11f570d418dfae2ac7d8.tar.xz |
Merge branch 'jk/rev-list-count-with-bitmap' into maint
"git rev-list --count" whose walk-length is limited with "-n"
option did not work well with the counting optimized to look at the
bitmap index.
* jk/rev-list-count-with-bitmap:
rev-list: disable bitmaps when "-n" is used with listing objects
rev-list: "adjust" results of "--count --use-bitmap-index -n"
Diffstat (limited to 't/t5310-pack-bitmaps.sh')
-rwxr-xr-x | t/t5310-pack-bitmaps.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t5310-pack-bitmaps.sh b/t/t5310-pack-bitmaps.sh index d446706e9..3893afd68 100755 --- a/t/t5310-pack-bitmaps.sh +++ b/t/t5310-pack-bitmaps.sh @@ -47,6 +47,12 @@ rev_list_tests() { test_cmp expect actual ' + test_expect_success "counting commits with limit ($state)" ' + git rev-list --count -n 1 HEAD >expect && + git rev-list --use-bitmap-index --count -n 1 HEAD >actual && + test_cmp expect actual + ' + test_expect_success "counting non-linear history ($state)" ' git rev-list --count other...master >expect && git rev-list --use-bitmap-index --count other...master >actual && |