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

Re: Should "git help" respect the 'pager' setting?

From
John Keeping <john@keeping.me.uk>
Date
May 30, 2013, 17:14 UTC
Message-ID
<20130530171431.GF17475@serenity.lan>
In-Reply-To
<CALkWK0ns3iVATnPwZ4OFJUxefyE6j-ayV3-iwh3Wr9FBZJyt1g@mail.gmail.com>
On Thu, May 30, 2013 at 10:38:59PM +0530, Ramkumar Ramachandra wrote:
Show 7 quoted lines
> Matthieu Moy wrote:
> > I find it a bit weird that Git sets the configuration for external
> > commands, but it may make sense. No strong opinion here.
> 
> I don't mean a setenv() kind of thing: how would we unset it after
> that?  Perhaps something like execvpe(), passing in the environment as
> an argument?

Overriding PAGER might make sense, but I'd be quite annoyed if Git decided to override MANPAGER without providing some way to override it.

If a user sets MANPAGER then it's because they want a specific pager when reading man pages - invoking man through "git help" shouldn't cause it to behave differently in this case.

Previous: Ramkumar RamachandraNext: Junio C Hamano
Message 6 of 7 in “Should "git help" respect the 'pager' setting?”
  1. Michael CampbellMay 30, 2013
  2. Matthieu MoyMay 30, 2013
  3. Ramkumar RamachandraMay 30, 2013
  4. Matthieu MoyMay 30, 2013
  5. Ramkumar RamachandraMay 30, 2013
  6. John KeepingMay 30, 2013
  7. Junio C HamanoJun 2, 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.