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

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