diff options
author | Timo Hirvonen <tihirvon@gmail.com> | 2006-06-24 20:25:08 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-26 14:58:41 -0700 |
commit | 0e677e1a6b0d1c0e848ed19d18dda1c3c797c75e (patch) | |
tree | e20976d765fe298c34daa3f009fd0b67973201de /builtin-log.c | |
parent | c9b5ef998a3027d9f11b0820bb13896096833ccb (diff) | |
download | git-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 'builtin-log.c')
-rw-r--r-- | builtin-log.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/builtin-log.c b/builtin-log.c index c1bf9d4ee..4e5273aec 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -24,11 +24,8 @@ static int cmd_log_wc(int argc, const char **argv, char **envp, rev->verbose_header = 1; argc = setup_revisions(argc, argv, rev, "HEAD"); if (rev->always_show_header) { - if (rev->diffopt.pickaxe || rev->diffopt.filter) { + if (rev->diffopt.pickaxe || rev->diffopt.filter) rev->always_show_header = 0; - if (rev->diffopt.output_format == DIFF_FORMAT_RAW) - rev->diffopt.output_format = DIFF_FORMAT_NO_OUTPUT; - } } if (argc > 1) |