git/list[1] front-page[2] threads[3] people[4] search[5] about
 

commit summary, --pretty=short and other tools

From
Mike Hommey <mh@glandium.org>
Date
Sep 17, 2007, 11:21 UTC
Message-ID
<20070917112136.GA30201@glandium.org>
Hi,

I kind of shot myself in the foot with how to type proper commit messages.

The git-commit manual page reads:
  Though not required, it´s a good idea to begin the commit message with a
  single short (less than 50 character) line summarizing the change,
  followed by a blank line and then a more thorough description. 
... and I happen to not have done the "followed by a blank line" part.

Now, git log --pretty=oneline (for instance), shows me the full commit message on one line, which is not really what I would expect...

On the other hand, and that's how I got trapped into this, gitweb and gitk only display the first line, be it followed by a blank line or not.

So, IMHO, there would be 2 solutions:
- either change --pretty=oneline,short and other similar things to take
  only the first line and change the git-commit manpage (and whenever
  else this might be written)
- or change gitweb, gitk and any other tool that would only take the
  first line so that it takes the same summary as --pretty=oneline.
What do you think ?
Mike
Next: Jeff King
Message 1 of 10 in “commit summary, --pretty=short and other tools”
  1. Mike HommeySep 17, 2007
  2. Jeff KingSep 17, 2007
  3. Benoit SIGOURESep 17, 2007
  4. Junio C HamanoSep 18, 2007
  5. Andreas EricssonSep 18, 2007
  6. Johannes SchindelinSep 18, 2007
  7. Andreas EricssonSep 18, 2007
  8. Benoit SIGOURESep 18, 2007
  9. Johannes SchindelinSep 18, 2007
  10. Wincent ColaiutaSep 18, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.