author | Linus Torvalds <torvalds@osdl.org> | |
Wed, 16 Nov 2005 17:38:46 +0000 (09:38 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 16 Nov 2005 21:17:46 +0000 (13:17 -0800) | ||
commit | c0c35d5e419f3bf215103b1e26359aca288c2113 | |
tree | bf4e2dd133be0adb04b35f7cceec6733f4324e7c | tree | snapshot |
parent | 7dbc2c0402d728a206d4f1bc59729bf3a5cc4455 | commit | diff |
Disallow empty pattern in "git grep"
For some reason I've done a "git grep" twice with no pattern, which is
really irritating, since it just grep everything. If I actually wanted
that, I could do "git grep ^" or something.
So add a "usage" message if the pattern is empty.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
For some reason I've done a "git grep" twice with no pattern, which is
really irritating, since it just grep everything. If I actually wanted
that, I could do "git grep ^" or something.
So add a "usage" message if the pattern is empty.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-grep.sh | diff | blob | history |