unpack-trees: pass checkout state explicitly to check_updates()
commitb56aa5b268ee2188c3dee27cc94025f4c647594a
authorRené Scharfe <l.s.r@web.de>
Tue, 13 Sep 2016 17:37:06 +0000 (13 19:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Sep 2016 23:26:12 +0000 (13 16:26 -0700)
treeac00a5ed14c59ea8ef64bb5fe58a3c59ed17a7b9
parent91942260a2a8c8659450159dda73702f5cbda528
unpack-trees: pass checkout state explicitly to check_updates()

Add a parameter for the struct checkout variable to check_updates()
instead of using a static global variable.  Passing it explicitly makes
object ownership and usage more easily apparent.  And we get rid of a
static variable; those can be problematic in library-like code.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c