builtin/apply: move check_apply_state() to apply.c
commitb6446d54ec70817ddd96b5c9668dd74a996719bf
authorChristian Couder <christian.couder@gmail.com>
Mon, 8 Aug 2016 21:03:10 +0000 (8 23:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Aug 2016 19:41:47 +0000 (11 12:41 -0700)
treec05c6e1251488db03a54e795972d97a408fe7769
parentf36538d88b12595d527c60ae1b882c89bb5d1b2a
builtin/apply: move check_apply_state() to apply.c

To libify `git apply` functionality we must make check_apply_state()
usable outside "builtin/apply.c".

Let's do that by moving it into "apply.c".

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c
apply.h
builtin/apply.c