MCPcopy Index your code
hub / github.com/git/git / add_ref

Function add_ref

shallow.c:791–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791static int add_ref(const struct reference *ref, void *cb_data)
792{
793 struct commit_stack *cs = cb_data;
794 struct commit *commit = lookup_commit_reference_gently(the_repository,
795 ref->oid, 1);
796 if (commit)
797 commit_stack_push(cs, commit);
798 return 0;
799}
800
801static void update_refstatus(int *ref_status, size_t nr, uint32_t *bitmap)
802{

Callers

nothing calls this directly

Calls 2

commit_stack_pushFunction · 0.85

Tested by

no test coverage detected