Re: Fix "git log -z" behaviour
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 7, 2007, 19:55 UTC
- Message-ID
- <7vmz3p7neb.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0702071139090.8424@woody.linux-foundation.org>
Ah, I was looking at other minor issues and then came up with this one liner. But obviously "termination should be the true inter-commit spacing" is the right direction, so I'll chuck this one.
diff --git a/log-tree.c b/log-tree.c index d8ca36b..410f90f 100644 --- a/log-tree.c +++ b/log-tree.c @@ -354,6 +354,8 @@ int log_tree_commit(struct rev_info *opt, struct commit *commit) if (!shown && opt->loginfo && opt->always_show_header) { log.parent = NULL; show_log(opt, ""); + if (!opt->diffopt.line_termination) + putchar(0); shown = 1; } opt->loginfo = NULL;