aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/diff-files.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/diff-files.c')
-rw-r--r--builtin/diff-files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/diff-files.c b/builtin/diff-files.c
index 2e3e948583..04070607b1 100644
--- a/builtin/diff-files.c
+++ b/builtin/diff-files.c
@@ -82,8 +82,8 @@ int cmd_diff_files(int argc, const char **argv, const char *prefix)
if (repo_read_index_preload(the_repository, &rev.diffopt.pathspec, 0) < 0)
die_errno("repo_read_index_preload");
- result = run_diff_files(&rev, options);
- result = diff_result_code(&rev.diffopt, result);
+ run_diff_files(&rev, options);
+ result = diff_result_code(&rev.diffopt, 0);
release_revisions(&rev);
return result;
}