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

Re: [PATCH] pager: config variable pager.program

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 31, 2006, 12:56 UTC
Message-ID
<Pine.LNX.4.63.0607311454040.29667@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<E1G7WfC-000728-9j@moooo.ath.cx>
Hi,
On Mon, 31 Jul 2006, Matthias Lederhofer wrote:
> Signed-off-by: Matthias Lederhofer <matled@gmx.net>
The commit message no longer reflects what the patch does ;-)
> -	const char *pager = getenv("PAGER");
> +	char *pager;

You do not need to lose the "const" (it means that you cannot access the memory it points to, but you can change the pointer). Also, you could make a more minimal patch by replacing PAGER by GIT_PAGER here, instead of having this extra line:

> +	pager = getenv("GIT_PAGER");

Ciao, Dscho

Previous: Matthias LederhoferNext: Matthias Lederhofer
Message 4 of 5 in “pager: config variable pager.program”
  1. pager: config variable pager.programMatthias Lederhofer, Jul 29, 2006
  2. Junio C HamanoJul 31, 2006
  3. pager: config variable pager.programMatthias Lederhofer, Jul 31, 2006
  4. Johannes SchindelinJul 31, 2006
  5. pager: environment variable GIT_PAGER to override PAGERMatthias Lederhofer, Jul 31, 2006

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.