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

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