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

Function show_parents

log-tree.c:271–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271static void show_parents(struct commit *commit, int abbrev, FILE *file)
272{
273 struct commit_list *p;
274 for (p = commit->parents; p ; p = p->next) {
275 struct commit *parent = p->item;
276 fprintf(file, " %s",
277 repo_find_unique_abbrev(the_repository, &parent->object.oid, abbrev));
278 }
279}
280
281static void show_children(struct rev_info *opt, struct commit *commit, int abbrev)
282{

Callers 1

show_logFunction · 0.85

Calls 1

repo_find_unique_abbrevFunction · 0.85

Tested by

no test coverage detected