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
Jonathan Nieder <jrnieder@gmail.com>
Date
Jun 17, 2013, 06:18 UTC
Message-ID
<20130617061852.GA6942@elie.Belkin>
In-Reply-To
<7vd2rlic2q.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
Show 5 quoted lines
> Or inside "less" that is spawned by "git log -p", I often say this:
>
>     /^commit .*|^diff --git .*<ENTER>
>
> and navigate with 'n' and 'p'.
Hm, that implies an interesting trick.  If I run
	LESS='FRSX +/^commit |^diff --git ' git log -p

then 'n' and shift+'n' can be used for navigating without having to spell out the /pattern to start by hand.

Previous: Junio C Hamano
Message 4 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.