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

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