| #define USE_THE_REPOSITORY_VARIABLE |
| static const char * const apply_usage[] = { |
| N_("git apply [<options>] [<patch>...]"), |
| struct repository *repo UNUSED) |
| struct apply_state state; |
| if (init_apply_state(&state, the_repository, prefix)) |
| * We could to redo the "apply.c" machinery to make this |
| * arbitrary fallback unnecessary, but it is dubious that it |
| * cf. https://lore.kernel.org/git/xmqqcypfcmn4.fsf@gitster.g/ |
| repo_set_hash_algo(the_repository, GIT_HASH_SHA1); |
| argc = apply_parse_options(argc, argv, |
| &state, &force_apply, &options, |
| if (check_apply_state(&state, force_apply)) |
| ret = apply_all_patches(&state, argc, argv, options); |
| clear_apply_state(&state); |