From: Junio C Hamano Date: Wed, 24 Feb 2016 21:26:01 +0000 (-0800) Subject: Merge branch 'jc/am-i-v-fix' X-Git-Tag: v2.8.0-rc0~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3b1e8d85133e2a19d372b7c166d5b49fcbbfef2;p=git Merge branch 'jc/am-i-v-fix' The "v(iew)" subcommand of the interactive "git am -i" command was broken in 2.6.0 timeframe when the command was rewritten in C. * jc/am-i-v-fix: am -i: fix "v"iew pager: factor out a helper to prepare a child process to run the pager pager: lose a separate argv[] --- c3b1e8d85133e2a19d372b7c166d5b49fcbbfef2 diff --cc pager.c index e425070528,cb28207c48..4bc048148e --- a/pager.c +++ b/pager.c @@@ -11,15 -11,12 +11,14 @@@ * something different on Windows. */ - static const char *pager_argv[] = { NULL, NULL }; static struct child_process pager_process = CHILD_PROCESS_INIT; -static void wait_for_pager(void) +static void wait_for_pager(int in_signal) { - fflush(stdout); - fflush(stderr); + if (!in_signal) { + fflush(stdout); + fflush(stderr); + } /* signal EOF to pager */ close(1); close(2);