diff options
author | Jeff King <peff@peff.net> | 2011-08-18 15:01:32 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-19 15:52:25 -0700 |
commit | 92058e4d3e032714da6d2df5fa1fe2cf612979a5 (patch) | |
tree | 04002eec56f5a5c813e9b7e2c8cf686f6dee2c71 /git.c | |
parent | c9bfb953489e559d513c1627150aa16f8d42d6c5 (diff) | |
download | git-92058e4d3e032714da6d2df5fa1fe2cf612979a5.tar.gz |
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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]); |