All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@imag.fr>
To: "J.R. Mauro" <jrm8005@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Git pager woes
Date: Tue, 07 Oct 2008 16:30:41 +0200	[thread overview]
Message-ID: <vpqbpxwxysu.fsf@bauges.imag.fr> (raw)
In-Reply-To: <3aaafc130810070643m352ea2ufa1069dc149f0d9e@mail.gmail.com> (J. R. Mauro's message of "Tue\, 7 Oct 2008 09\:43\:12 -0400")

"J.R. Mauro" <jrm8005@gmail.com> writes:

> Git doesn't set special options to it's pager command if the LESS
> environment variable is set.

Yes, this is by design: if you customized less, git obeys the
configuration you've set. Otherwise, it takes a default wich is more
appropriate to git that what "less" does without $LESS set.

That policy isn't perfect, but I think any other would be worse: I
wouldn'l like git to change my configuration if I did set $LESS
myself, and I also prefer git's default to LESS default when it comes
to paging git commands (but I like less's default for other uses, for
example, I like the man page to disapear when I close it).

-- 
Matthieu

      parent reply	other threads:[~2008-10-07 14:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-07 13:43 Git pager woes J.R. Mauro
2008-10-07 14:23 ` Andreas Ericsson
2008-10-07 14:24   ` J.R. Mauro
2008-10-07 14:30 ` Matthieu Moy [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=vpqbpxwxysu.fsf@bauges.imag.fr \
    --to=matthieu.moy@imag.fr \
    --cc=git@vger.kernel.org \
    --cc=jrm8005@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.