builtin/apply: move 'patch_input_file' global into 'struct apply_state'
commitb802355863814b331ffc4ae029b228472e874d1f
authorChristian Couder <christian.couder@gmail.com>
Tue, 24 May 2016 08:11:06 +0000 (24 10:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Jun 2016 17:10:16 +0000 (1 10:10 -0700)
tree37c9783f42d358bd8042776ad2a90aee7365ad3c
parent574f5a59d85153309ea9856f425ca610074e1116
builtin/apply: move 'patch_input_file' global into 'struct apply_state'

To libify the apply functionality the 'patch_input_file' variable should
not be static and global to the file. Let's move it into
'struct apply_state'.

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