X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=graph.c;h=6746d422a98ed010489d4ce74b26a8a4600b183e;hb=eb80042c6a631aee74bd0d1b1dd845784e9788cd;hp=f3226ec94a5b59372096698e216af60169d565f6;hpb=2e1176d51ef4fc07f487818acdfcf2fc4b789203;p=git.git diff --git a/graph.c b/graph.c index f3226ec94..6746d422a 100644 --- a/graph.c +++ b/graph.c @@ -291,9 +291,10 @@ static int graph_is_interesting(struct git_graph *graph, struct commit *commit) } /* - * Uninteresting and pruned commits won't be printed + * Otherwise, use get_commit_action() to see if this commit is + * interesting */ - return (commit->object.flags & (UNINTERESTING | TREESAME)) ? 0 : 1; + return get_commit_action(graph->revs, commit) == commit_show; } static struct commit_list *next_interesting_parent(struct git_graph *graph,