Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/grep-untracked-exclude'
author
Junio C Hamano
<gitster@pobox.com>
Sun, 16 Oct 2011 03:27:19 +0000
(20:27 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 16 Oct 2011 03:27:19 +0000
(20:27 -0700)
* jc/grep-untracked-exclude:
grep: fix the error message that mentions --exclude
builtin/grep.c
patch
|
blob
|
history
raw
(from parent 1:
463b0ea
)
diff --git
a/builtin/grep.c
b/builtin/grep.c
index 024b87868aaf6b57b4af01feecf671cad664433c..7d0779f6cfd60149379f957941ebef18aef735ab 100644
(file)
--- a/
builtin/grep.c
+++ b/
builtin/grep.c
@@
-1064,7
+1064,7
@@
int cmd_grep(int argc, const char **argv, const char *prefix)
die(_("--no-index or --untracked cannot be used with revs."));
hit = grep_directory(&opt, &pathspec, use_exclude);
} else if (0 <= opt_exclude) {
- die(_("--
exclude or --no-exclude
cannot be used for tracked contents."));
+ die(_("--
[no-]exclude-standard
cannot be used for tracked contents."));
} else if (!list.nr) {
if (!cached)
setup_work_tree();