summaryrefslogtreecommitdiff
path: root/apply.h
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-08-08 21:03:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-11 19:41:47 (GMT)
commitbb493a5c147a4b60f0f412a71bf9236ede4a560c (patch)
tree0b49eb35e39d8dfa5d1cda1b31e4945d94683afa /apply.h
parentf95fdc256b4732e6363823daa707ea6058e6db8e (diff)
downloadgit-bb493a5c147a4b60f0f412a71bf9236ede4a560c.zip
git-bb493a5c147a4b60f0f412a71bf9236ede4a560c.tar.gz
git-bb493a5c147a4b60f0f412a71bf9236ede4a560c.tar.bz2
builtin/apply: move init_apply_state() to apply.c
To libify `git apply` functionality we must make init_apply_state() usable outside "builtin/apply.c". Let's do that by moving it into a new "apply.c". Helped-by: Eric Sunshine <sunshine@sunshineco.com> 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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/apply.h b/apply.h
index 7493a40..08c0a25 100644
--- a/apply.h
+++ b/apply.h
@@ -97,4 +97,14 @@ struct apply_state {
int applied_after_fixing_ws;
};
+extern int parse_whitespace_option(struct apply_state *state,
+ const char *option);
+extern int parse_ignorewhitespace_option(struct apply_state *state,
+ const char *option);
+
+extern void init_apply_state(struct apply_state *state,
+ const char *prefix,
+ struct lock_file *lock_file);
+extern void clear_apply_state(struct apply_state *state);
+
#endif