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

Function add_one_commit

commit.c:1061–1076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1059};
1060
1061static void add_one_commit(struct object_id *oid, struct rev_collect *revs)
1062{
1063 struct commit *commit;
1064
1065 if (is_null_oid(oid))
1066 return;
1067
1068 commit = lookup_commit(the_repository, oid);
1069 if (!commit ||
1070 (commit->object.flags & TMP_MARK) ||
1071 repo_parse_commit(the_repository, commit))
1072 return;
1073
1074 commit_stack_push(&revs->stack, commit);
1075 commit->object.flags |= TMP_MARK;
1076}
1077
1078static int collect_one_reflog_ent(const char *refname UNUSED,
1079 struct object_id *ooid, struct object_id *noid,

Callers 2

collect_one_reflog_entFunction · 0.85
get_fork_pointFunction · 0.85

Calls 4

is_null_oidFunction · 0.85
lookup_commitFunction · 0.85
repo_parse_commitFunction · 0.85
commit_stack_pushFunction · 0.85

Tested by

no test coverage detected