diff options
author | Junio C Hamano <junkio@cox.net> | 2007-03-03 22:51:46 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-03 22:51:46 -0800 |
commit | e551208dea5cd40721c437faafb6d604dedffef5 (patch) | |
tree | b38f46b7de8e076c58a574c7d570a7ef74e520f2 /builtin-diff-files.c | |
parent | 253e772edeb56092e0fad43ec0640658671313c5 (diff) | |
parent | fcfa33ec905fcde1c16e7cbbe00d7147b89f1f01 (diff) | |
download | git-e551208dea5cd40721c437faafb6d604dedffef5.tar.gz git-e551208dea5cd40721c437faafb6d604dedffef5.tar.xz |
Merge branch 'js/diff-ni' (early part)
* 'js/diff-ni' (early part):
diff: make more cases implicit --no-index
Diffstat (limited to 'builtin-diff-files.c')
-rw-r--r-- | builtin-diff-files.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/builtin-diff-files.c b/builtin-diff-files.c index e1199f80a..aec833842 100644 --- a/builtin-diff-files.c +++ b/builtin-diff-files.c @@ -23,7 +23,10 @@ int cmd_diff_files(int argc, const char **argv, const char *prefix) git_config(git_default_config); /* no "diff" UI options */ rev.abbrev = 0; - argc = setup_revisions(argc, argv, &rev, NULL); + if (!setup_diff_no_index(&rev, argc, argv, nongit, prefix)) + argc = 0; + else + argc = setup_revisions(argc, argv, &rev, NULL); if (!rev.diffopt.output_format) rev.diffopt.output_format = DIFF_FORMAT_RAW; return run_diff_files_cmd(&rev, argc, argv); |