builtin/apply: move 'state' check into check_apply_state()
commitc84a86c99526b88cfd7664888ecbfd28f35a025f
authorChristian Couder <christian.couder@gmail.com>
Tue, 24 May 2016 08:11:23 +0000 (24 10:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Jun 2016 17:10:16 +0000 (1 10:10 -0700)
treeea82239dad64430fd290e84679daafe96d36c192
parent2f63cea963667d17271d96196b6ef1605790032a
builtin/apply: move 'state' check into check_apply_state()

To libify the apply functionality we should provide a function
to check that the values in a 'struct apply_state' instance are
coherent. Let's move the code to do that into a new
check_apply_state() function.

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