3 #include "parse-options.h"
7 static const char * const apply_usage[] = {
8 N_("git apply [<options>] [<patch>...]"),
12 int cmd_apply(int argc, const char **argv, const char *prefix)
17 struct apply_state state;
19 if (init_apply_state(&state, prefix))
22 argc = apply_parse_options(argc, argv,
23 &state, &force_apply, &options,
26 if (check_apply_state(&state, force_apply))
29 ret = apply_all_patches(&state, argc, argv, options);
31 clear_apply_state(&state);