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

Re: Git pager woes

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Oct 7, 2008, 14:30 UTC
Message-ID
<vpqbpxwxysu.fsf@bauges.imag.fr>
In-Reply-To
<3aaafc130810070643m352ea2ufa1069dc149f0d9e@mail.gmail.com>
"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
Previous: J.R. Mauro
Message 4 of 4 in “Git pager woes”
  1. J.R. MauroOct 7, 2008
  2. Andreas EricssonOct 7, 2008
  3. J.R. MauroOct 7, 2008
  4. Matthieu MoyOct 7, 2008

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.