summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1798562)
raw | patch | inline | side by side (parent: 1798562)
author | Timo Hirvonen <tihirvon@gmail.com> | |
Tue, 27 Jun 2006 16:43:22 +0000 (19:43 +0300) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 27 Jun 2006 18:04:47 +0000 (11:04 -0700) |
setup_revisions() calls diff_setup_done() before we can set default
value for output_format. Don't convert DIFF_FORMAT_NO_OUTPUT to 0 in
diff_setup_done(), it is useless and makes diff-tree believe no diff
format parameters were given and thus lets it reset output_format to
DIFF_FORMAT_RAW.
Signed-off-by: Timo Hirvonen <tihirvon@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
value for output_format. Don't convert DIFF_FORMAT_NO_OUTPUT to 0 in
diff_setup_done(), it is useless and makes diff-tree believe no diff
format parameters were given and thus lets it reset output_format to
DIFF_FORMAT_RAW.
Signed-off-by: Timo Hirvonen <tihirvon@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c | patch | blob | history |
index 71fb0967fd9c78e50b9f563ba4c57bed208d76e4..6d04be49dea83d319c68257d25dde6587179bdc5 100644 (file)
--- a/diff.c
+++ b/diff.c
(0 <= options->rename_limit && !options->detect_rename))
return -1;
- if (options->output_format & DIFF_FORMAT_NO_OUTPUT)
- options->output_format = 0;
-
if (options->output_format & (DIFF_FORMAT_NAME |
DIFF_FORMAT_NAME_STATUS |
DIFF_FORMAT_CHECKDIFF |