Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ps/grep-help-all-callback-arg'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 20 Apr 2015 22:28:34 +0000
(15:28 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 20 Apr 2015 22:28:34 +0000
(15:28 -0700)
Code clean-up.
* ps/grep-help-all-callback-arg:
grep: correctly initialize help-all option
builtin/grep.c
patch
|
blob
|
history
raw
(from parent 1:
9718c7c
)
diff --git
a/builtin/grep.c
b/builtin/grep.c
index abc440023ff98e354a92f002419b52836e4155c0..d04f4400d9db8ef9f0b0dde0c8be46a11bd0e2f7 100644
(file)
--- a/
builtin/grep.c
+++ b/
builtin/grep.c
@@
-738,7
+738,7
@@
int cmd_grep(int argc, const char **argv, const char *prefix)
PARSE_OPT_OPTARG, NULL, (intptr_t)default_pager },
OPT_BOOL(0, "ext-grep", &external_grep_allowed__ignored,
N_("allow calling of grep(1) (ignored by this build)")),
- { OPTION_CALLBACK, 0, "help-all",
&options
, NULL, N_("show usage"),
+ { OPTION_CALLBACK, 0, "help-all",
NULL
, NULL, N_("show usage"),
PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, help_callback },
OPT_END()
};