git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Obscure commit message formatting issue
@ 2007-11-11 21:28 Daniel Barkalow
  2007-11-11 22:01 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Barkalow @ 2007-11-11 21:28 UTC (permalink / raw)
  To: Junio C Hamano, git

The current code drops extra blank lines between the first line of a 
commit message (the summary line) and the remainder. That is:

This is the summary


This is another bit


This is a third bit

turns into:

Subject: This is the summary
Other-Headers:

This is another bit


This is a third bit


This is an issue if you want to generate an email whose body starts with a 
blank line, and I assume (although I haven't tried), that rebase would 
lose a blank line out of commits formatted like that. We don't seem to 
have any tests that require that line to get suppressed, and we also don't 
suppress any other blank lines. Is there some reason to do it?

I'd guess that the "first" handling in pp_remainder() was intended to skip 
the blank line between the summary line and the body, but that line has 
already been consumed by other code.

	-Daniel
*This .sig left intentionally blank*

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-11-11 22:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-11 21:28 Obscure commit message formatting issue Daniel Barkalow
2007-11-11 22:01 ` Junio C Hamano
2007-11-11 22:30   ` Daniel Barkalow
2007-11-11 22:43     ` Johannes Schindelin
2007-11-11 22:50       ` Daniel Barkalow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).