* Returns 1 if the commit will be printed in the graph output, * and 0 otherwise. */
| 455 | * and 0 otherwise. |
| 456 | */ |
| 457 | static 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 | |
| 476 | static struct commit_list *next_interesting_parent(struct git_graph *graph, |
| 477 | struct commit_list *orig) |
no test coverage detected