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

Function graph_is_interesting

graph.c:457–474  ·  view source on GitHub ↗

* Returns 1 if the commit will be printed in the graph output, * and 0 otherwise. */

Source from the content-addressed store, hash-verified

455 * and 0 otherwise.
456 */
457static int graph_is_interesting(struct git_graph *graph, struct commit *commit)
458{
459 /*
460 * If revs->boundary is set, commits whose children have
461 * been shown are always interesting, even if they have the
462 * UNINTERESTING or TREESAME flags set.
463 */
464 if (graph->revs && graph->revs->boundary) {
465 if (commit->object.flags & CHILD_SHOWN)
466 return 1;
467 }
468
469 /*
470 * Otherwise, use get_commit_action() to see if this commit is
471 * interesting
472 */
473 return get_commit_action(graph->revs, commit) == commit_show;
474}
475
476static struct commit_list *next_interesting_parent(struct git_graph *graph,
477 struct commit_list *orig)

Callers 2

next_interesting_parentFunction · 0.85
first_interesting_parentFunction · 0.85

Calls 1

get_commit_actionFunction · 0.85

Tested by

no test coverage detected