#ifndef APPLY_H
#define APPLY_H
#include "hash.h"
#include "lockfile.h"
#include "string-list.h"
#include "strmap.h"
struct repository;
enum apply_ws_error_action { … };
enum apply_ws_ignore { … };
enum apply_verbosity { … };
struct apply_state { … };
struct patch { … };
int apply_parse_options(int argc, const char **argv,
struct apply_state *state,
int *force_apply, int *options,
const char * const *apply_usage);
int init_apply_state(struct apply_state *state,
struct repository *repo,
const char *prefix);
void clear_apply_state(struct apply_state *state);
int check_apply_state(struct apply_state *state, int force_apply);
int parse_git_diff_header(struct strbuf *root,
int *linenr,
int p_value,
const char *line,
int len,
unsigned int size,
struct patch *patch);
void release_patch(struct patch *patch);
#define APPLY_OPT_INACCURATE_EOF …
#define APPLY_OPT_RECOUNT …
int apply_all_patches(struct apply_state *state,
int argc, const char **argv,
int options);
#endif