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

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