aboutsummaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorTimo Hirvonen <tihirvon@gmail.com>2006-06-24 20:25:08 +0300
committerJunio C Hamano <junkio@cox.net>2006-06-26 14:58:41 -0700
commit0e677e1a6b0d1c0e848ed19d18dda1c3c797c75e (patch)
treee20976d765fe298c34daa3f009fd0b67973201de /revision.c
parentc9b5ef998a3027d9f11b0820bb13896096833ccb (diff)
downloadgit-0e677e1a6b0d1c0e848ed19d18dda1c3c797c75e.tar.gz
git-0e677e1a6b0d1c0e848ed19d18dda1c3c797c75e.tar.xz
DIFF_FORMAT_RAW is not default anymore
diff_setup() used to initialize output_format to DIFF_FORMAT_RAW. Now the default is 0 (no output) so don't compare against DIFF_FORMAT_RAW to see if any diff format command line flags were given. Signed-off-by: Timo Hirvonen <tihirvon@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/revision.c b/revision.c
index b963f2adf..ae4ca8200 100644
--- a/revision.c
+++ b/revision.c
@@ -851,8 +851,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
}
if (revs->combine_merges) {
revs->ignore_merges = 0;
- if (revs->dense_combined_merges &&
- (revs->diffopt.output_format != DIFF_FORMAT_DIFFSTAT))
+ if (revs->dense_combined_merges && !revs->diffopt.output_format)
revs->diffopt.output_format = DIFF_FORMAT_PATCH;
}
revs->diffopt.abbrev = revs->abbrev;