summaryrefslogtreecommitdiff
path: root/builtin-grep.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-01-28 12:33:42 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-01-28 12:33:42 -0800
commit4ff61c21de519b4b3c9569b354fa5a3905b69c6a (patch)
tree1b0829332583d5d39eeaaee2a1b566edc3504df1 /builtin-grep.c
parentreject @{-1} not at beginning of object name (diff)
downloadtgif-4ff61c21de519b4b3c9569b354fa5a3905b69c6a.tar.xz
grep --quiet: finishing touches
Name the option "--quiet" not "--quick", document it, and add tests. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-grep.c')
-rw-r--r--builtin-grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-grep.c b/builtin-grep.c
index 6cc743d7c5..9bd467c9b9 100644
--- a/builtin-grep.c
+++ b/builtin-grep.c
@@ -832,7 +832,7 @@ 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', "quick", &opt.status_only,
+ OPT_BOOLEAN('q', "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"),