Re: [PATCH] whatchanged: Default to DIFF_FORMAT_RAW
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jun 25, 2006, 11:55 UTC
- Message-ID
- <7vy7vltppj.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20060625141102.b68a7cae.tihirvon@gmail.com>
Timo Hirvonen <tihirvon@gmail.com> writes:
Show 19 quoted lines
> Signed-off-by: Timo Hirvonen <tihirvon@gmail.com>
> ---
> 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()
> + */Indeed it is ugly. Might it be a cleaner option to signal _wc function what command its caller is, by adding an extra parameter (or check argv -- ugh)?