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

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