From: Jonathan Nieder <jrnieder@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Paul Menzel <paulepanter@users.sourceforge.net>, git@vger.kernel.org
Subject: Re: git log: Add a switch to limit the number of displayed lines from the commit messages
Date: Sun, 16 Jun 2013 23:18:52 -0700 [thread overview]
Message-ID: <20130617061852.GA6942@elie.Belkin> (raw)
In-Reply-To: <7vd2rlic2q.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> 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.
prev parent reply other threads:[~2013-06-17 6:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-15 18:07 git log: Add a switch to limit the number of displayed lines from the commit messages Paul Menzel
2013-06-15 19:19 ` Jonathan Nieder
2013-06-17 4:41 ` Junio C Hamano
2013-06-17 6:18 ` Jonathan Nieder [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130617061852.GA6942@elie.Belkin \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=paulepanter@users.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).