diff options
author | Jeff King <peff@peff.net> | 2016-09-13 05:23:48 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-14 00:45:45 +0200 |
commit | c0c08897c47eb46179c8d2408dc1a91713307842 (patch) | |
tree | cd5aeab18a5d620703e97f27dc994efdd9ea2078 /pager.c | |
parent | pager: stop loading git_default_config() (diff) | |
download | git-c0c08897c47eb46179c8d2408dc1a91713307842.tar.xz git-c0c08897c47eb46179c8d2408dc1a91713307842.zip |
pager: make pager_program a file-local static
This variable is only ever used by the routines in pager.c,
and other parts of the code should always use those routines
(like git_pager()) to make decisions about which pager to
use. Let's reduce its scope to prevent accidents.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pager.c')
-rw-r--r-- | pager.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -7,6 +7,7 @@ #endif static struct child_process pager_process = CHILD_PROCESS_INIT; +static const char *pager_program; static void wait_for_pager(int in_signal) { |