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

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