aboutsummaryrefslogtreecommitdiff
path: root/builtin/grep.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-10-15 20:27:19 -0700
committerJunio C Hamano <gitster@pobox.com>2011-10-15 20:27:19 -0700
commitefe7aecbceb7ce0ea61f320dfbfb9e8e23f60de6 (patch)
treeb5dbd971fb71c05179a3d1eedacc32be84eb740a /builtin/grep.c
parent463b0ea22b5b9a882e8140d0308433d8cbd0d1fe (diff)
parent9fddaf78964a835160a0b27cdac724c27aab09bf (diff)
downloadgit-efe7aecbceb7ce0ea61f320dfbfb9e8e23f60de6.tar.gz
git-efe7aecbceb7ce0ea61f320dfbfb9e8e23f60de6.tar.xz
Merge branch 'jc/grep-untracked-exclude'
* jc/grep-untracked-exclude: grep: fix the error message that mentions --exclude
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 024b87868..7d0779f6c 100644
--- 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();