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

Function add_to_tips

remote.c:1402–1413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1400}
1401
1402static void add_to_tips(struct commit_stack *tips, const struct object_id *oid)
1403{
1404 struct commit *commit;
1405
1406 if (is_null_oid(oid))
1407 return;
1408 commit = lookup_commit_reference_gently(the_repository, oid, 1);
1409 if (!commit || (commit->object.flags & TMP_MARK))
1410 return;
1411 commit->object.flags |= TMP_MARK;
1412 commit_stack_push(tips, commit);
1413}
1414
1415static void add_missing_tags(struct ref *src, struct ref **dst, struct ref ***dst_tail)
1416{

Callers 1

add_missing_tagsFunction · 0.85

Calls 3

is_null_oidFunction · 0.85
commit_stack_pushFunction · 0.85

Tested by

no test coverage detected