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

To libify the apply functionality the 'apply' 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