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

Function show_edge

path-walk.c:430–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428static struct type_and_oid_list *edge_tree_list;
429
430static void show_edge(struct commit *commit)
431{
432 struct tree *t = repo_get_commit_tree(edge_repo, commit);
433
434 if (!t)
435 return;
436
437 if (commit->object.flags & UNINTERESTING)
438 t->object.flags |= UNINTERESTING;
439
440 if (t->object.flags & SEEN)
441 return;
442 t->object.flags |= SEEN;
443
444 oid_array_append(&edge_tree_list->oids, &t->object.oid);
445}
446
447static int setup_pending_objects(struct path_walk_info *info,
448 struct path_walk_context *ctx)

Callers 3

add_edge_parentsFunction · 0.70
mark_edges_uninterestingFunction · 0.70

Calls 2

repo_get_commit_treeFunction · 0.85
oid_array_appendFunction · 0.85

Tested by

no test coverage detected