Code

paginate git-diff by default
authorMartin Waitz <tali@admingilde.org>
Tue, 10 Oct 2006 19:16:25 +0000 (21:16 +0200)
committerJunio C Hamano <junkio@cox.net>
Wed, 11 Oct 2006 00:58:34 +0000 (17:58 -0700)
git.c

diff --git a/git.c b/git.c
index d7103a40864cc833e7590b93efb98ccc42263686..e089b53571cd8776ab208fe14b87af53b7057739 100644 (file)
--- a/git.c
+++ b/git.c
@@ -226,7 +226,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
                { "check-ref-format", cmd_check_ref_format },
                { "commit-tree", cmd_commit_tree, RUN_SETUP },
                { "count-objects", cmd_count_objects, RUN_SETUP },
-               { "diff", cmd_diff, RUN_SETUP },
+               { "diff", cmd_diff, RUN_SETUP | USE_PAGER },
                { "diff-files", cmd_diff_files, RUN_SETUP },
                { "diff-index", cmd_diff_index, RUN_SETUP },
                { "diff-stages", cmd_diff_stages, RUN_SETUP },