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

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