Skip to content

Commit 77fdb8a

Browse files
pcloudsgitster
authored andcommitted
grep: correct help string for --exclude-standard
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 282616c commit 77fdb8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/grep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
643643
OPT_BOOL(0, "untracked", &untracked,
644644
N_("search in both tracked and untracked files")),
645645
OPT_SET_INT(0, "exclude-standard", &opt_exclude,
646-
N_("search also in ignored files"), 1),
646+
N_("ignore files specified via '.gitignore'"), 1),
647647
OPT_GROUP(""),
648648
OPT_BOOL('v', "invert-match", &opt.invert,
649649
N_("show non-matching lines")),

0 commit comments

Comments
 (0)