Add core.pager config variable.

This adds a configuration variable that performs the same function as,
but is overridden by, GIT_PAGER.

Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Acked-by: Johannes E. Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Brian Gernhardt
2007-07-03 14:18:11 -04:00
committed by Junio C Hamano
parent 41c7c1bd6f
commit 54adf3706c
5 changed files with 13 additions and 0 deletions

View File

@@ -31,6 +31,8 @@ void setup_pager(void)
if (!isatty(1))
return;
if (!pager)
pager = pager_program;
if (!pager)
pager = getenv("PAGER");
if (!pager)