summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d5e3d60)
raw | patch | inline | side by side (parent: d5e3d60)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 22 May 2006 07:31:02 +0000 (00:31 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 22 May 2006 07:31:02 +0000 (00:31 -0700) |
output_format == DIFFSTAT and with_stat == true does not make sense, and
the way the code is structured it causes trouble. Avoid it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
the way the code is structured it causes trouble. Avoid it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c | patch | blob | history |
index d3bb10e009f58a36e1f3b09f11253a84ac72c46e..160178367964e2c262366d6819fa26de3edb4a62 100644 (file)
--- a/diff.c
+++ b/diff.c
(options->output_format == DIFF_FORMAT_CHECKDIFF))
options->recursive = 1;
+ /*
+ * These combinations do not make sense.
+ */
+ if (options->output_format == DIFF_FORMAT_RAW)
+ options->with_raw = 0;
+ if (options->output_format == DIFF_FORMAT_DIFFSTAT)
+ options->with_stat = 0;
+
if (options->detect_rename && options->rename_limit < 0)
options->rename_limit = diff_rename_limit_default;
if (options->setup & DIFF_SETUP_USE_CACHE) {