diff options
author | Junio C Hamano <junkio@cox.net> | 2006-07-31 02:53:46 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-07-31 15:32:23 -0700 |
commit | 9590b041ea464c46d5a6811df5bce83c5dd4d457 (patch) | |
tree | 7c1f434b8bcd6a62bdb3d934bfe96ee8e521edd6 /builtin-log.c | |
parent | 3e04228b0c4bbb4b5cd46db9a714dfe699fa4cb8 (diff) | |
download | git-9590b041ea464c46d5a6811df5bce83c5dd4d457.tar.gz git-9590b041ea464c46d5a6811df5bce83c5dd4d457.tar.xz |
Builtins: control the use of pager from the command table.
This moves the built-in "always-use-pager" logic for log family
to the command dispatch table of git wrapper. This makes it
easier to change the default use of pager, and has an added
benefit that we fork and exec the pager early before packs are
mmapped.
Pointed out by Juergen Ruehle <j.ruehle@bmiag.de>.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-log.c')
-rw-r--r-- | builtin-log.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin-log.c b/builtin-log.c index 82c69d1d0..bba1496bf 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -34,7 +34,6 @@ static int cmd_log_walk(struct rev_info *rev) struct commit *commit; prepare_revision_walk(rev); - setup_pager(); while ((commit = get_revision(rev)) != NULL) { log_tree_commit(rev, commit); free(commit->buffer); |