summaryrefslogtreecommitdiff
path: root/apply.h
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-08-08 21:03:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-11 19:41:47 (GMT)
commitb6446d54ec70817ddd96b5c9668dd74a996719bf (patch)
treec05c6e1251488db03a54e795972d97a408fe7769 /apply.h
parentf36538d88b12595d527c60ae1b882c89bb5d1b2a (diff)
downloadgit-b6446d54ec70817ddd96b5c9668dd74a996719bf.zip
git-b6446d54ec70817ddd96b5c9668dd74a996719bf.tar.gz
git-b6446d54ec70817ddd96b5c9668dd74a996719bf.tar.bz2
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>
Diffstat (limited to 'apply.h')
-rw-r--r--apply.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apply.h b/apply.h
index e18a18a..53f09b5 100644
--- a/apply.h
+++ b/apply.h
@@ -106,5 +106,6 @@ extern int init_apply_state(struct apply_state *state,
const char *prefix,
struct lock_file *lock_file);
extern void clear_apply_state(struct apply_state *state);
+extern int check_apply_state(struct apply_state *state, int force_apply);
#endif