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

git log: Add a switch to limit the number of displayed lines from the commit messages

From
PMPaul Menzel <paulepanter@users.sourceforge.net>
Date
Jun 15, 2013, 18:07 UTC
Message-ID
<1371319623.9845.34.camel@mattotaupa>
Dear git folks,

there are people out there disliking elaborate commit messages, as going over `git log` is tedious as you have to scroll a lot. As I do not like the suggestion to make commit messages shorter by omitting certain details, a way to limit the number displayed lines of the commit messages would be nice to have.

The switch `--format=oneline` exists already. Unfortunately a lot of commits do not have a informative enough summary, so the first lines of the commit message are still needed/desired to understand the commit more.

Could a switch be added, like `--commit-message-lines` (sorry for not coming up with something better) to limit the number of displayed lines? That would be great!

For older git versions, do you know of editor/pager options to achieve this?

Thanks,
Paul
Next: Jonathan Nieder
Message 1 of 4 in “git log: Add a switch to limit the number of displayed lines from the commit messages”
  1. Paul MenzelJun 15, 2013
  2. Jonathan NiederJun 15, 2013
  3. Junio C HamanoJun 17, 2013
  4. Jonathan NiederJun 17, 2013

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.