3 test_description='rev-list combining bitmaps and filters'
6 test_expect_success 'set up bitmapped repo' '
7 # one commit will have bitmaps, the other will not
13 test_expect_success 'filters fallback to non-bitmap traversal' '
14 # use a path-based filter, since they are inherently incompatible with
15 # bitmaps (i.e., this test will never get confused by later code to
16 # combine the features)
17 filter=$(echo "!one" | git hash-object -w --stdin) &&
18 git rev-list --objects --filter=sparse:oid=$filter HEAD >expect &&
19 git rev-list --use-bitmap-index \
20 --objects --filter=sparse:oid=$filter HEAD >actual &&
21 test_cmp expect actual