From 92058e4d3e032714da6d2df5fa1fe2cf612979a5 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Thu, 18 Aug 2011 15:01:32 -0700 Subject: support pager.* for external commands Without this patch, any commands that are not builtin would not respect pager.* config. For example: git config pager.stash false git stash list would still use a pager. With this patch, pager.stash now has an effect. If it is not specified, we will still fall back to pager.log when we invoke "log" from "stash list". Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- git.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git.c') diff --git a/git.c b/git.c index 89721d420a..bb5205e4dd 100644 --- a/git.c +++ b/git.c @@ -467,6 +467,8 @@ static void execv_dashed_external(const char **argv) const char *tmp; int status; + if (use_pager == -1) + use_pager = check_pager_config(argv[0]); commit_pager_choice(); strbuf_addf(&cmd, "git-%s", argv[0]); -- cgit v1.2.3