X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=log-tree.c;h=30cd5bb22800f5e897c1170e97721a4dcdb9c9d2;hb=5190d73d1e83d6ac982da2a793043c2b012fad40;hp=bd8b9e45ab46b8664c8b7016b33bee22f86c9e0d;hpb=652b0bbe09c909eb5aa34be8746071f1c5c0e73d;p=git.git diff --git a/log-tree.c b/log-tree.c index bd8b9e45a..30cd5bb22 100644 --- a/log-tree.c +++ b/log-tree.c @@ -432,7 +432,7 @@ static int log_tree_diff(struct rev_info *opt, struct commit *commit, struct log struct commit_list *parents; unsigned const char *sha1 = commit->object.sha1; - if (!opt->diff) + if (!opt->diff && !DIFF_OPT_TST(&opt->diffopt, EXIT_WITH_STATUS)) return 0; /* Root commit? */