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

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