Skip to content

Commit

Permalink
Merge branch 'jc/maint-grep-untracked-exclude' into jc/grep-untracked…
Browse files Browse the repository at this point in the history
…-exclude

* jc/maint-grep-untracked-exclude:
  grep: fix the error message that mentions --exclude

Conflicts:
	builtin/grep.c
  • Loading branch information
Junio C Hamano committed Oct 16, 2011
2 parents dbfae86 + 92e6183 commit 9fddaf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/grep.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,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();
Expand Down

0 comments on commit 9fddaf7

Please sign in to comment.