summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d7de00f)
raw | patch | inline | side by side (parent: d7de00f)
author | Timo Hirvonen <tihirvon@gmail.com> | |
Sat, 24 Jun 2006 17:28:42 +0000 (20:28 +0300) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 2 Jul 2006 05:26:00 +0000 (22:26 -0700) |
Signed-off-by: Timo Hirvonen <tihirvon@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-diff-files.c | patch | blob | history | |
builtin-diff.c | patch | blob | history |
diff --git a/builtin-diff-files.c b/builtin-diff-files.c
index a655eea91ed5ac38af578e47fe6747a1b6fb968c..3361898ada6f6606293e9bf8e1ed1539dff41a8d 100644 (file)
--- a/builtin-diff-files.c
+++ b/builtin-diff-files.c
if (rev.pending.nr ||
rev.min_age != -1 || rev.max_age != -1)
usage(diff_files_usage);
- /*
- * Backward compatibility wart - "diff-files -s" used to
- * defeat the common diff option "-s" which asked for
- * DIFF_FORMAT_NO_OUTPUT.
- */
- if (rev.diffopt.output_format == DIFF_FORMAT_NO_OUTPUT)
- rev.diffopt.output_format = DIFF_FORMAT_RAW;
return run_diff_files(&rev, silent);
}
diff --git a/builtin-diff.c b/builtin-diff.c
index d520c7ca294fcd8e619135bfe8932650d850724c..059eb6de4932ad7f67a09559da5c08144f14de3f 100644 (file)
--- a/builtin-diff.c
+++ b/builtin-diff.c
if (revs->max_count < 0 &&
(revs->diffopt.output_format & DIFF_FORMAT_PATCH))
revs->combine_merges = revs->dense_combined_merges = 1;
- /*
- * Backward compatibility wart - "diff-files -s" used to
- * defeat the common diff option "-s" which asked for
- * DIFF_FORMAT_NO_OUTPUT.
- */
- if (revs->diffopt.output_format == DIFF_FORMAT_NO_OUTPUT)
- revs->diffopt.output_format = DIFF_FORMAT_RAW;
return run_diff_files(revs, silent);
}