Re: Obscure commit message formatting issue
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 11, 2007, 22:01 UTC
- Message-ID
- <7vprygbfwf.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <Pine.LNX.4.64.0711111559220.29952@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
> The current code drops extra blank lines between the first line of a > commit message (the summary line) and the remainder.
The patch application side does even more. It not just strips off the leading or trailing blank lines, but duplicate blank lines in the middle and trailing whitespaces at the end of each line.
I am of two minds about the formatting side.
The behaviour you found does not go far enough to correct all of the above whitespace breakage the application side will fix up on the generation side -- it only corrects one of them. We might want to do more, instead of less that you seem to be implying to favor.