git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] grep: fix error message mention --exclude

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
Oct 15, 2011, 18:36 UTC
Message-ID
<2533ba3dbe08fc0d76c9cbc9c76bff1c4ff80d4c.1318703760.git.bert.wesarg@googlemail.com>
Missing rename from --exclude to --standard-exclude.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
---
 builtin/grep.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin/grep.c b/builtin/grep.c
index 024b878..7d0779f 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();
-- 
1.7.6.789.gb4599
Next: Junio C Hamano
Message 1 of 2 in “grep: fix error message mention --exclude”
  1. grep: fix error message mention --excludeBert Wesarg, Oct 15, 2011
  2. Junio C HamanoOct 16, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.