summaryrefslogtreecommitdiff
path: root/pack-bitmap.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-04-07 16:54:09 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-04-07 16:54:09 -0700
commit58840e62a4c3fda3ec6c9ed4b34795aaafb73afc (patch)
treebc834238437acf9e48dd42cb1ee3725106a8160e /pack-bitmap.c
parentMerge branch 'zh/commit-trailer' (diff)
parentpack-bitmap: avoid traversal of objects referenced by uninteresting tag (diff)
downloadtgif-58840e62a4c3fda3ec6c9ed4b34795aaafb73afc.tar.xz
Merge branch 'ps/pack-bitmap-optim'
Optimize "rev-list --use-bitmap-index --objects" corner case that uses negative tags as the stopping points. * ps/pack-bitmap-optim: pack-bitmap: avoid traversal of objects referenced by uninteresting tag
Diffstat (limited to 'pack-bitmap.c')
-rw-r--r--pack-bitmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pack-bitmap.c b/pack-bitmap.c
index 1ebe0c8162..b4513f8672 100644
--- a/pack-bitmap.c
+++ b/pack-bitmap.c
@@ -997,6 +997,7 @@ struct bitmap_index *prepare_bitmap_walk(struct rev_info *revs,
object_list_insert(object, &wants);
object = parse_object_or_die(get_tagged_oid(tag), NULL);
+ object->flags |= (tag->object.flags & UNINTERESTING);
}
if (object->flags & UNINTERESTING)