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

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