]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t6113-rev-list-bitmap-filters.sh
Merge branch 'bc/sha-256-part-2'
[thirdparty/git.git] / t / t6113-rev-list-bitmap-filters.sh
index 145603f124574cb209155dd643fdc555685a79fa..2b551e6fd0ce1d6706334eaa2a65cda7f9e56618 100755 (executable)
@@ -53,4 +53,25 @@ test_expect_success 'blob:limit filter with specified blob' '
        test_bitmap_traversal expect actual
 '
 
+test_expect_success 'tree:0 filter' '
+       git rev-list --objects --filter=tree:0 HEAD >expect &&
+       git rev-list --use-bitmap-index \
+                    --objects --filter=tree:0 HEAD >actual &&
+       test_bitmap_traversal expect actual
+'
+
+test_expect_success 'tree:0 filter with specified blob, tree' '
+       git rev-list --objects --filter=tree:0 HEAD HEAD:two.t >expect &&
+       git rev-list --use-bitmap-index \
+                    --objects --filter=tree:0 HEAD HEAD:two.t >actual &&
+       test_bitmap_traversal expect actual
+'
+
+test_expect_success 'tree:1 filter' '
+       git rev-list --objects --filter=tree:1 HEAD >expect &&
+       git rev-list --use-bitmap-index \
+                    --objects --filter=tree:1 HEAD >actual &&
+       test_cmp expect actual
+'
+
 test_done