Re: Tabs in commit messages - de-tabify option in strbuf_stripspace()?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 16, 2016, 00:45 UTC
- Message-ID
- <xmqq4mc76yji.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CA+55aFzHMp4hiCp7+2Yxy=KNQ_rBru3RM-pghXUPtoxr_L+w2w@mail.gmail.com>
Linus Torvalds <torvalds@linux-foundation.org> writes:
> Do people hate that idea? I may not get around to it for a while (it's > the kernel merge window right now), but I can write the patch > eventually - I just wanted to do an RFC first.
Wouldn't it be nicer to do this kind of thing at the output side? A stupid way would be to have an option to indent the log text with a tab instead of 4-spaces, but a more sensible way would be to keep the visual 4-space-indent and do the expand-tab for each line of text.
That way, your viewing of existing commits that use 8-space HT to align (and worse yet, mixture of 8-space HT and 8 spaces and assume the end result would align in the output) would become more pleasant without you having to run filter-branch ;-)