builtin/apply: move 'read_stdin' global into cmd_apply()
commitdcde8b3dcd8d4411a2311fa0a93ca4ca3b26d61f
authorChristian Couder <christian.couder@gmail.com>
Wed, 11 May 2016 13:16:18 +0000 (11 15:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 May 2016 19:21:24 +0000 (12 12:21 -0700)
tree805a6fe6792bce5d7977000e7ff1009d0edfb409
parentd1b27ced9a38ed03e99422b6cb24ff95c7437663
builtin/apply: move 'read_stdin' global into cmd_apply()

The 'read_stdin' variable doesn't need to be static and global to the
file. It can be local to cmd_apply(), so let's move it there.

This will make it easier to libify the apply functionality.

Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c