X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fapply.c;h=84a8a0b52136c4d1e43ec10f9ef5ed76b7d3c12f;hb=35a71f1402b40b580d985a9d7e5fb1c9ec4d0232;hp=311a94e18195c611b55de7d1619da890aca240af;hpb=60f60b49629b6693ce5b8ce9201b2f6dd3989354;p=git.git diff --git a/builtin/apply.c b/builtin/apply.c index 311a94e18..84a8a0b52 100644 --- a/builtin/apply.c +++ b/builtin/apply.c @@ -3841,7 +3841,6 @@ int cmd_apply(int argc, const char **argv, const char *prefix_) int i; int errs = 0; int is_not_gitdir = !startup_info->have_repository; - int binary; int force_apply = 0; const char *whitespace_option = NULL; @@ -3860,12 +3859,8 @@ int cmd_apply(int argc, const char **argv, const char *prefix_) "ignore additions made by the patch"), OPT_BOOLEAN(0, "stat", &diffstat, "instead of applying the patch, output diffstat for the input"), - { OPTION_BOOLEAN, 0, "allow-binary-replacement", &binary, - NULL, "old option, now no-op", - PARSE_OPT_HIDDEN | PARSE_OPT_NOARG }, - { OPTION_BOOLEAN, 0, "binary", &binary, - NULL, "old option, now no-op", - PARSE_OPT_HIDDEN | PARSE_OPT_NOARG }, + OPT_NOOP_NOARG(0, "allow-binary-replacement"), + OPT_NOOP_NOARG(0, "binary"), OPT_BOOLEAN(0, "numstat", &numstat, "shows number of added and deleted lines in decimal notation"), OPT_BOOLEAN(0, "summary", &summary,