builtin/apply: move check_apply_state() to apply.c
[gitweb.git] / apply.h
diff --git a/apply.h b/apply.h
index 7493a40c730a636c43e3b21bd06a2027da003a68..53f09b5a45afc1109d1f13f1393c4af9f9c15bfe 100644 (file)
--- a/apply.h
+++ b/apply.h
@@ -97,4 +97,15 @@ 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 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