Skip to content

Commit 092927c

Browse files
chungagitster
authored andcommitted
apply: hide unused options from short help
The options "--binary" and "--allow-binary-replacement" of git-apply are no-op and maintained for backward compatibility, so avoid to show them in the short help screen. Signed-off-by: Michele Ballabio <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 40bac15 commit 092927c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

builtin-apply.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3224,10 +3224,10 @@ int cmd_apply(int argc, const char **argv, const char *unused_prefix)
32243224
"ignore additions made by the patch"),
32253225
OPT_BOOLEAN(0, "stat", &diffstat,
32263226
"instead of applying the patch, output diffstat for the input"),
3227-
OPT_BOOLEAN(0, "allow-binary-replacement", &binary,
3228-
"now no-op"),
3229-
OPT_BOOLEAN(0, "binary", &binary,
3230-
"now no-op"),
3227+
{ OPTION_BOOLEAN, 0, "allow-binary-replacement", &binary,
3228+
NULL, "old option, now no-op", PARSE_OPT_HIDDEN },
3229+
{ OPTION_BOOLEAN, 0, "binary", &binary,
3230+
NULL, "old option, now no-op", PARSE_OPT_HIDDEN },
32313231
OPT_BOOLEAN(0, "numstat", &numstat,
32323232
"shows number of added and deleted lines in decimal notation"),
32333233
OPT_BOOLEAN(0, "summary", &summary,

0 commit comments

Comments
 (0)