MCPcopy Create free account
hub / github.com/git/git / mark_bitmap_preferred_tip

Function mark_bitmap_preferred_tip

builtin/pack-objects.c:4711–4725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4709}
4710
4711static int mark_bitmap_preferred_tip(const struct reference *ref, void *data UNUSED)
4712{
4713 const struct object_id *maybe_peeled = ref->oid;
4714 struct object_id peeled;
4715 struct object *object;
4716
4717 if (!reference_get_peeled_oid(the_repository, ref, &peeled))
4718 maybe_peeled = &peeled;
4719
4720 object = parse_object_or_die(the_repository, maybe_peeled, ref->name);
4721 if (object->type == OBJ_COMMIT)
4722 object->flags |= NEEDS_BITMAP;
4723
4724 return 0;
4725}
4726
4727static inline int is_oid_uninteresting(struct repository *repo,
4728 struct object_id *oid)

Callers

nothing calls this directly

Calls 2

reference_get_peeled_oidFunction · 0.85
parse_object_or_dieFunction · 0.85

Tested by

no test coverage detected