Re: [PATCH] notes: remove trailing whitespace from editor template
From: Kristoffer Haugsbakk <hidden>
Date: 2025-05-27 21:21:34
From: Kristoffer Haugsbakk <hidden>
Date: 2025-05-27 21:21:34
On Tue, May 27, 2025, at 19:18, Junio C Hamano wrote:
Alternatively, if it bothers users of certain editing environments too much, perhaps the indent code in the output phase of "git show" should lose the indents for empty lines uniformly, shoudln't it? It probably should be a fairly isolated change, like the way how the expand_tabs_in_log bit is handled in pretty.c; give another bit and teach pp_handle_indent to return when that bit is set and the payload it was asked to show with indentation is empty, or something like that.
That sounds scary. I’ll make do without. -- Kristoffer Haugsbakk