Skip to content

Commit 92e6183

Browse files
bertwesarggitster
authored andcommitted
grep: fix the error message that mentions --exclude
Missing rename from --exclude to --standard-exclude. Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 0a93fb8 commit 92e6183

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
@@ -971,7 +971,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
971971
}
972972

973973
if (0 <= opt_exclude)
974-
die("--exclude or --no-exclude cannot be used for tracked contents.");
974+
die("--[no-]exclude-standard cannot be used for tracked contents.");
975975

976976
if (!list.nr) {
977977
int hit;

0 commit comments

Comments
 (0)