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

Function mark_edge_parents_uninteresting

list-objects.c:236–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236static void mark_edge_parents_uninteresting(struct commit *commit,
237 struct rev_info *revs,
238 show_edge_fn show_edge)
239{
240 struct commit_list *parents;
241
242 for (parents = commit->parents; parents; parents = parents->next) {
243 struct commit *parent = parents->item;
244 if (!(parent->object.flags & UNINTERESTING))
245 continue;
246 mark_tree_uninteresting(revs->repo,
247 repo_get_commit_tree(the_repository, parent));
248 if (revs->edge_hint && !(parent->object.flags & SHOWN)) {
249 parent->object.flags |= SHOWN;
250 show_edge(parent);
251 }
252 }
253}
254
255static void add_edge_parents(struct commit *commit,
256 struct rev_info *revs,

Callers 1

mark_edges_uninterestingFunction · 0.85

Calls 3

mark_tree_uninterestingFunction · 0.85
repo_get_commit_treeFunction · 0.85
show_edgeFunction · 0.70

Tested by

no test coverage detected