From: Kirill Likhodedov Date: Wed, 15 Sep 2010 12:55:20 GMT Subject: git log --pretty=format joins lines in the subject of commit message Message-ID: 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!"