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

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