[PATCH] paginate git-diff by default

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Martin Waitz
Date: Tuesday, October 10, 2006 - 12:16 pm

On Tue, Oct 10, 2006 at 02:15:58PM -0400, Shawn Pearce wrote:

so here is the overly complex implementation:

---
diff --git a/git.c b/git.c
index 03acb25..3408e81 100644
--- a/git.c
+++ b/git.c
@@ -226,7 +226,7 @@ static void handle_internal_command(int
 		{ "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 },

-- 
Martin Waitz
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
paginate git-diff by default?, Martin Waitz, (Tue Oct 10, 11:13 am)
Re: paginate git-diff by default?, Shawn Pearce, (Tue Oct 10, 11:15 am)
Re: paginate git-diff by default?, Johannes Schindelin, (Tue Oct 10, 12:06 pm)
[PATCH] paginate git-diff by default, Martin Waitz, (Tue Oct 10, 12:16 pm)
Re: [PATCH] paginate git-diff by default, Junio C Hamano, (Tue Oct 10, 5:57 pm)