X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fgrep.c;h=adb542494dde32123011b1e76ed164ab39e6e716;hb=9bec60d3a52fa10b276214f8d255d6ff05a04b77;hp=da32f3df34da7af3cdcb0a9dd6aa66061bdfe927;hpb=b886656403ed26a9a78f73724c640a3149636ada;p=git.git diff --git a/builtin/grep.c b/builtin/grep.c index da32f3df3..adb542494 100644 --- a/builtin/grep.c +++ b/builtin/grep.c @@ -24,7 +24,7 @@ #endif static char const * const grep_usage[] = { - "git grep [options] [-e] [...] [[--] path...]", + "git grep [options] [-e] [...] [[--] ...]", NULL }; @@ -915,8 +915,8 @@ int cmd_grep(int argc, const char **argv, const char *prefix) { OPTION_CALLBACK, ')', NULL, &opt, NULL, "", PARSE_OPT_NOARG | PARSE_OPT_NONEG | PARSE_OPT_NODASH, close_callback }, - OPT_BOOLEAN('q', "quiet", &opt.status_only, - "indicate hit with exit status without output"), + OPT__QUIET(&opt.status_only, + "indicate hit with exit status without output"), OPT_BOOLEAN(0, "all-match", &opt.all_match, "show only matches from files that match all patterns"), OPT_GROUP(""),