diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-04-07 16:54:09 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-04-07 16:54:09 -0700 |
commit | 58840e62a4c3fda3ec6c9ed4b34795aaafb73afc (patch) | |
tree | bc834238437acf9e48dd42cb1ee3725106a8160e /pack-bitmap.c | |
parent | Merge branch 'zh/commit-trailer' (diff) | |
parent | pack-bitmap: avoid traversal of objects referenced by uninteresting tag (diff) | |
download | tgif-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.c | 1 |
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) |