Skip to content

Commit 9fddaf7

Browse files
committed
Merge branch 'jc/maint-grep-untracked-exclude' into jc/grep-untracked-exclude
* jc/maint-grep-untracked-exclude: grep: fix the error message that mentions --exclude Conflicts: builtin/grep.c
2 parents dbfae86 + 92e6183 commit 9fddaf7

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

0 commit comments

Comments
 (0)