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

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