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

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