@matheusbsbs / matheus-bagliano / commits / b92565dc5c
Fork 0

Delay pager setup in git blame

This avoids to launch the pager when git blame fails for any reason. Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Mike Hommey committed Nov 3, 2007 at 13:22 UTC b92565dc5c505c3d01f3219fb7f61ebc70630a2c
1 file changed +3 -3
builtin-blame.c
+3 -3
@@ -2231,9 +2231,6 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
2231 argv[unk++] = arg;
2232 }
2233
2234 - if (!incremental)
2235 - setup_pager();
2236 -
2234 if (!blame_move_score)
2235 blame_move_score = BLAME_DEFAULT_MOVE_SCORE;
2236 if (!blame_copy_score)
@@ -2427,6 +2424,9 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
2424
2425 read_mailmap(&mailmap, ".mailmap", NULL);
2426
2427 + if (!incremental)
2428 + setup_pager();
2429 +
2430 assign_blame(&sb, &revs, opt);
2431
2432 if (incremental)