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

Re: [PATCH] Add core.pager config variable.

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Jul 3, 2007, 19:50 UTC
Message-ID
<5CF58212-5486-4BA6-AC78-50F62D1B7F6E@silverinsanity.com>
In-Reply-To
<200707032142.07154.robin.rosenberg.lists@dewire.com>
On Jul 3, 2007, at 3:42 PM, Robin Rosenberg wrote:
> Nak.
>
> PAGER cannot override core.pager with this.

core.pager is acting exactly like GIT_PAGER. The priority goes (from pager.c:30):

GIT_PAGER core.pager PAGER "less"

I think this is a desirable option because I'd like to tell all other programs to use less and tell git to use tig (which I'm trying out). I specifically want core.pager to override PAGER, but this leaves GIT_PAGER as the final override. Why should I export an environment variable to every program when git has a configuration file? And what does overriding PAGER break? If the user doesn't want to use core.pager, they don't have to.

~~ Brian
Previous: Robin RosenbergNext: Jonas Fonseca
Message 6 of 8 in “Add pager.program config variable.”
  1. Add pager.program config variable.Brian Gernhardt, Jul 3, 2007
  2. Johannes SchindelinJul 3, 2007
  3. Add core.pager config variable.Brian Gernhardt, Jul 3, 2007
  4. Johannes SchindelinJul 3, 2007
  5. Robin RosenbergJul 3, 2007
  6. Brian GernhardtJul 3, 2007
  7. Jonas FonsecaJul 3, 2007
  8. Junio C HamanoJul 4, 2007

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.