git log: Add a switch to limit the number of displayed lines from the commit messages
- From
- Paul 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