]>
git.ipfire.org Git - thirdparty/git.git/blob - builtin/apply.c
4 #include "parse-options.h"
5 #include "repository.h"
8 static const char * const apply_usage
[] = {
9 N_("git apply [<options>] [<patch>...]"),
13 int cmd_apply(int argc
, const char **argv
, const char *prefix
)
18 struct apply_state state
;
20 if (init_apply_state(&state
, the_repository
, prefix
))
23 argc
= apply_parse_options(argc
, argv
,
24 &state
, &force_apply
, &options
,
27 if (check_apply_state(&state
, force_apply
))
30 ret
= apply_all_patches(&state
, argc
, argv
, options
);
32 clear_apply_state(&state
);