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

Function lookup_commit_reference_by_name_gently

commit.c:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114struct commit *lookup_commit_reference_by_name_gently(const char *name,
115 int quiet)
116{
117 struct object_id oid;
118 struct commit *commit;
119
120 if (repo_get_oid_committish(the_repository, name, &oid))
121 return NULL;
122 commit = lookup_commit_reference_gently(the_repository, &oid, quiet);
123 if (repo_parse_commit(the_repository, commit))
124 return NULL;
125 return commit;
126}
127
128static timestamp_t parse_commit_date(const char *buf, const char *tail)
129{

Callers 2

filter_is_baseFunction · 0.85

Calls 3

repo_get_oid_committishFunction · 0.85
repo_parse_commitFunction · 0.85

Tested by

no test coverage detected