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

Re: Git pager woes

From
Andreas Ericsson <ae@op5.se>
Date
Oct 7, 2008, 14:23 UTC
Message-ID
<48EB70C4.1070001@op5.se>
In-Reply-To
<3aaafc130810070643m352ea2ufa1069dc149f0d9e@mail.gmail.com>
J.R. Mauro wrote:
Show 10 quoted lines
> Git doesn't set special options to it's pager command if the LESS
> environment variable is set. I noticed when I started using Gentoo
> that git was putting all output into a pager even if it were less than
> one page, which it didn't do under Ubuntu. A fellow Gentoo user
> confirms this; apparently Gentoo's defaults set LESS, but without a
> -F.
> 
> Should git always tack on a -F when it invokes less, or should this be
> put on the user to look up what to do? Or should I go complain to the
> Gentoo folks?

Go complain to Gentoo. If the user has set it explicitly (even if that happens behind the user's back), we absolutely mustn't fiddle with it.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: J.R. MauroNext: J.R. Mauro
Message 2 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.