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>
maint
Mike Hommey 2007-11-03 13:22:53 +01:00 committed by Junio C Hamano
parent a0554224a2
commit b92565dc5c
1 changed files with 3 additions and 3 deletions

View File

@ -2231,9 +2231,6 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
argv[unk++] = arg;
}

if (!incremental)
setup_pager();

if (!blame_move_score)
blame_move_score = BLAME_DEFAULT_MOVE_SCORE;
if (!blame_copy_score)
@ -2427,6 +2424,9 @@ int cmd_blame(int argc, const char **argv, const char *prefix)

read_mailmap(&mailmap, ".mailmap", NULL);

if (!incremental)
setup_pager();

assign_blame(&sb, &revs, opt);

if (incremental)