Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ar/commit-cleanup'
[gitweb.git]
/
builtin-diff-index.c
diff --git
a/builtin-diff-index.c
b/builtin-diff-index.c
index 556c506bfa7b5c5ef739d4203c585412a2764073..0f2390a20a6a138388564cd5e0395aee0a48b59c 100644
(file)
--- 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);
}