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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 17, 2013, 04:41 UTC
Message-ID
<7vd2rlic2q.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20130615191905.GA3363@elie.Belkin>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 9 quoted lines
>> 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.
>
> Have you tried gitk or tig?  They split the screen so you can browse
> through commits, one per line, in one half and read the corresponding
> commit messages and patches in the other.
Or inside "less" that is spawned by "git log -p", I often say this:
    /^commit .*|^diff --git .*<ENTER>
and navigate with 'n' and 'p'.
Previous: Jonathan NiederNext: Jonathan Nieder
Message 3 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.