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

[PATCH] grep: correct help string for --exclude-standard

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Feb 27, 2015, 14:01 UTC
Message-ID
<1425045718-30696-1-git-send-email-pclouds@gmail.com>

The current help string is about --no-exclude-standard. But "git grep -h" would show --exclude-standard instead. Flip the string. See 0a93fb8 (grep: teach --untracked and --exclude-standard options - 2011-09-27) for more info about these options.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 builtin/grep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/grep.c b/builtin/grep.c
index 4063882..e77f7cf 100644
--- a/builtin/grep.c
+++ b/builtin/grep.c
@@ -641,7 +641,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
 		OPT_BOOL(0, "untracked", &untracked,
 			N_("search in both tracked and untracked files")),
 		OPT_SET_INT(0, "exclude-standard", &opt_exclude,
-			    N_("search also in ignored files"), 1),
+			    N_("ignore files specified via '.gitignore'"), 1),
 		OPT_GROUP(""),
 		OPT_BOOL('v', "invert-match", &opt.invert,
 			N_("show non-matching lines")),
-- 
2.3.0.rc1.137.g477eb31
Next: Jeff King
Message 1 of 5 in “grep: correct help string for --exclude-standard”
  1. grep: correct help string for --exclude-standardNguyễn Thái Ngọc Duy, Feb 27, 2015
  2. Jeff KingMar 4, 2015
  3. Duy NguyenMar 4, 2015
  4. Jeff KingMar 4, 2015
  5. Duy NguyenMar 4, 2015

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.