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

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

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Jul 3, 2007, 19:42 UTC
Message-ID
<200707032142.07154.robin.rosenberg.lists@dewire.com>
In-Reply-To
<20070703181811.GA17966@Hermes.local>
tisdag 03 juli 2007 skrev Brian Gernhardt:
> This adds a configuration variable that performs the same function as,
> but is overridden by, GIT_PAGER.
[...]
Show 13 quoted lines
> diff --git a/pager.c b/pager.c
> index 5f280ab..3bfed02 100644
> --- a/pager.c
> +++ b/pager.c
> @@ -32,6 +32,8 @@ void setup_pager(void)
>  	if (!isatty(1))
>  		return;
>  	if (!pager)
> +		pager = pager_program;
> +	if (!pager)
>  		pager = getenv("PAGER");
>  	if (!pager)
>  		pager = "less";
Nak.
PAGER cannot override core.pager with this.
-- robin
Previous: Johannes SchindelinNext: Brian Gernhardt
Message 5 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.