diff options
| author | Junio C Hamano <gitster@pobox.com> | 2007-12-14 21:42:53 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2007-12-14 21:42:53 -0800 |
| commit | dfaf75b4698833d820e77e9f42ef93f3b6d3669d (patch) | |
| tree | af298a982053033eab62dcff0650d3eb18b37cc6 /builtin-diff-index.c | |
| parent | d7e92806cdc5ca78c4db879c68f91c70ff9e1ade (diff) | |
| parent | 5973a07937f2c64b595c6784b06eb4441c07b5ef (diff) | |
| download | git-dfaf75b4698833d820e77e9f42ef93f3b6d3669d.tar.gz | |
Merge branch 'wc/diff'
* wc/diff:
Test interaction between diff --check and --exit-code
Use shorter error messages for whitespace problems
Add tests for "git diff --check" with core.whitespace options
Make "diff --check" output match "git apply"
Unify whitespace checking
diff --check: minor fixups
"diff --check" should affect exit status
Diffstat (limited to 'builtin-diff-index.c')
| -rw-r--r-- | builtin-diff-index.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin-diff-index.c b/builtin-diff-index.c index 556c506bfa..0f2390a20a 100644 --- a/builtin-diff-index.c +++ b/builtin-diff-index.c @@ -44,7 +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; - return result; + return diff_result_code(&rev.diffopt, result); } |
