summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7cfc605)
raw | patch | inline | side by side (parent: 7cfc605)
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Wed, 28 Sep 2011 17:47:54 +0000 (19:47 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 28 Sep 2011 19:46:34 +0000 (12:46 -0700) |
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c | patch | blob | history |
diff --git a/builtin/apply.c b/builtin/apply.c
index f2edc52818e817e83717f992a6bbd66dad4ef24d..872e40ab1e0401a480ee8e852d09899f4d4553ed 100644 (file)
--- a/builtin/apply.c
+++ b/builtin/apply.c
int i;
int errs = 0;
int is_not_gitdir = !startup_info->have_repository;
- int binary;
int force_apply = 0;
const char *whitespace_option = NULL;
"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,