builtin/apply: move 'newfd' global into 'struct apply_state'
commita1bc3dd46433c6e7e6f1ca5f3bd5429858a60078
authorChristian Couder <christian.couder@gmail.com>
Fri, 3 Jun 2016 16:58:52 +0000 (3 18:58 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Jun 2016 17:31:56 +0000 (3 10:31 -0700)
treed6651d92866a8c7c76637735b4d4d87e24ff501d
parent8f31fac365c312aa9109a7a1fc1014e56ed473d2
builtin/apply: move 'newfd' global into 'struct apply_state'

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

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