From: Timo Hirvonen Date: Sun, 25 Jun 2006 11:11:02 GMT Subject: [PATCH] whatchanged: Default to DIFF_FORMAT_RAW Message-ID: <20060625141102.b68a7cae.tihirvon@gmail.com> In-Reply-To: <20060624202153.1001a66c.tihirvon@gmail.com> Signed-off-by: Timo Hirvonen --- builtin-log.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/builtin-log.c b/builtin-log.c index 5b3fadc..8a39770 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -28,6 +28,15 @@ static int cmd_log_wc(int argc, const ch rev->always_show_header = 0; } + if (!rev->diffopt.output_format && !rev->simplify_history) { + /* Ugly hack! + * + * rev->simplify_history == 0 -> whatchanged + * Can't do this before setup_revisions() + */ + rev->diffopt.output_format = DIFF_FORMAT_RAW; + } + if (argc > 1) die("unrecognized argument: %s", argv[1]); -- 1.4.1.rc1.g6e272-dirty