aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2009-10-30 20:41:27 -0500
committerJunio C Hamano <gitster@pobox.com>2009-11-13 12:20:47 -0800
commit6361824589bc2d32989a9a33f985d09a368436a3 (patch)
tree31050baa04194fee66e0c05b0e9569c538b41925 /cache.h
parent44fcb4977cbae67f4698306ccfe982420ceebcbf (diff)
downloadgit-6361824589bc2d32989a9a33f985d09a368436a3.tar.gz
git-6361824589bc2d32989a9a33f985d09a368436a3.tar.xz
Teach git var about GIT_PAGER
Expose the command found by setup_pager() for scripts to use. Scripts can use this to avoid repeating the logic to look for a proper pager in each command. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 311cfe121..5aaa4bac9 100644
--- a/cache.h
+++ b/cache.h
@@ -751,6 +751,7 @@ extern const char *git_committer_info(int);
extern const char *fmt_ident(const char *name, const char *email, const char *date_str, int);
extern const char *fmt_name(const char *name, const char *email);
extern const char *git_editor(void);
+extern const char *git_pager(void);
struct checkout {
const char *base_dir;