X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=graph.c;h=6746d422a98ed010489d4ce74b26a8a4600b183e;hb=refs%2Ftags%2Fv1.7.0.8;hp=f3226ec94a5b59372096698e216af60169d565f6;hpb=32f4cc49ae742e496355bea93c7b9481336f12cd;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,