diff options
Diffstat (limited to 'builtin-diff-index.c')
-rw-r--r-- | builtin-diff-index.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/builtin-diff-index.c b/builtin-diff-index.c index 532b284b1..0f2390a20 100644 --- a/builtin-diff-index.c +++ b/builtin-diff-index.c @@ -44,9 +44,5 @@ int cmd_diff_index(int argc, const char **argv, const char *prefix) return -1; } result = run_diff_index(&rev, cached); - if (DIFF_OPT_TST(&rev.diffopt, EXIT_WITH_STATUS)) - return DIFF_OPT_TST(&rev.diffopt, HAS_CHANGES) != 0; - if (rev.diffopt.output_format & DIFF_FORMAT_CHECKDIFF) - return DIFF_OPT_TST(&rev.diffopt, CHECK_FAILED) != 0; - return result; + return diff_result_code(&rev.diffopt, result); } |