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

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