git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git log --pretty=format joins lines in the subject of commit message
@ 2010-09-15 12:55 Kirill Likhodedov
  2010-09-15 13:01 ` Ævar Arnfjörð Bjarmason
  2010-09-15 13:47 ` svn2git question: Build directory inserted at top level? nolan.ring
  0 siblings, 2 replies; 7+ messages in thread
From: Kirill Likhodedov @ 2010-09-15 12:55 UTC (permalink / raw)
  To: git

Commit something to a git repository with a commit message with several newlines like this:

==== commit message starts below ===
first line
second line
third line

fifth line
=== commit message ends above ===

Git treats the first 3 lines as commit message subject and the last line as its body.

'git log' shows the commit message correctly - exactly like I've entered. So does 'git log --pretty=raw'

But 'git log --pretty=format:%s#%b' joins the first three lines:
first line second line third line#fifth line

Is it a bug or a feature?
If it is a feature how can I acquire the original subject of the commit message by using custom format?

Thanks a lot.

----------------------------------
Kirill Likhodedov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

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

end of thread, other threads:[~2010-09-17 14:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-15 12:55 git log --pretty=format joins lines in the subject of commit message Kirill Likhodedov
2010-09-15 13:01 ` Ævar Arnfjörð Bjarmason
2010-09-17 11:56   ` Kirill Likhodedov
2010-09-17 14:55     ` Jeff King
2010-09-15 13:47 ` svn2git question: Build directory inserted at top level? nolan.ring
2010-09-15 17:44   ` Daniel Johnson
2010-09-15 18:09     ` Torgny Nyblom

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).