@matheusbsbs / matheus-bagliano / commits / 4f0219a4c7
Fork 0

git-blame --incremental: don't use pager

Starting a pager defeats the purpose of the incremental output mode. This changes git-blame to only paginate if --incremental was not given. git -p blame --incremental still starts the pager, though. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <junkio@cox.net>

Ren,Ai(B Scharfe committed Jan 28, 2007 at 15:25 UTC 4f0219a4c76a2ce963cf355f90f18c9c59036bca
2 files changed +4 -1
builtin-blame.c
+3
@@ -1780,6 +1780,9 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
1780 argv[unk++] = arg;
1781 }
1782
1783 + if (!incremental)
1784 + setup_pager();
1785 +
1786 if (!blame_move_score)
1787 blame_move_score = BLAME_DEFAULT_MOVE_SCORE;
1788 if (!blame_copy_score)
git.c
+1 -1
@@ -217,7 +217,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
217 { "annotate", cmd_annotate, USE_PAGER },
218 { "apply", cmd_apply },
219 { "archive", cmd_archive },
220 - { "blame", cmd_blame, RUN_SETUP | USE_PAGER },
220 + { "blame", cmd_blame, RUN_SETUP },
221 { "branch", cmd_branch, RUN_SETUP },
222 { "cat-file", cmd_cat_file, RUN_SETUP },
223 { "checkout-index", cmd_checkout_index, RUN_SETUP },