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

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