Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-09-13 06:23:48 +0300
committerJunio C Hamano <gitster@pobox.com>2016-09-14 01:45:45 +0300
commitc0c08897c47eb46179c8d2408dc1a91713307842 (patch)
treecd5aeab18a5d620703e97f27dc994efdd9ea2078 /cache.h
parent4babb839aaa18b14a5ec9e8994678d75bc120920 (diff)
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 'cache.h')
-rw-r--r--cache.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 4ff196c259..5e50887d63 100644
--- a/cache.h
+++ b/cache.h
@@ -1733,7 +1733,6 @@ extern int write_file_gently(const char *path, const char *fmt, ...);
/* pager.c */
extern void setup_pager(void);
-extern const char *pager_program;
extern int pager_in_use(void);
extern int pager_use_color;
extern int term_columns(void);