Skip to content

Commit efe7aec

Browse files
committed
Merge branch 'jc/grep-untracked-exclude'
* jc/grep-untracked-exclude: grep: fix the error message that mentions --exclude
2 parents 463b0ea + 9fddaf7 commit efe7aec

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
@@ -1064,7 +1064,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
10641064
die(_("--no-index or --untracked cannot be used with revs."));
10651065
hit = grep_directory(&opt, &pathspec, use_exclude);
10661066
} else if (0 <= opt_exclude) {
1067-
die(_("--exclude or --no-exclude cannot be used for tracked contents."));
1067+
die(_("--[no-]exclude-standard cannot be used for tracked contents."));
10681068
} else if (!list.nr) {
10691069
if (!cached)
10701070
setup_work_tree();

0 commit comments

Comments
 (0)