From: Linus Torvalds Date: Wed, 16 Mar 2016 22:04:45 GMT Subject: Re: [PATCH] pretty-print: de-tabify indented logs to make things line up properly Message-ID: In-Reply-To: On Wed, Mar 16, 2016 at 2:37 PM, Junio C Hamano wrote: > > What surprised me was that this new expand logic triggered for > shortlog, actually. I somehow assumed the caller that called > de-tabify helper was only called for --pretty=medium. I guess that would be ok, since shortlog by definition can't have any issues with multiple lines lining up with each other. At the same time, it might be a bit odd to show tabs in that first line differently for the one-line vs multi-line log version. But maybe it isn't - I think shortlog is the only thing that does that wrapping anyway, so shortlog is already special. I think the reason shortlog output gets both the de-tab and the wrapping is that shortlog_add_commit() just calls pretty_print_commit with CMIT_FMT_USERFORMAT. Linus