Permalink
Browse files

Ignore binary files when using git grep

Matches the default behaviour of ag/ack.
  • Loading branch information...
tsibley committed Nov 27, 2013
1 parent c2d8ed4 commit 5540fa49c57824f1e7695cf4c4b0faa0ee38ceea
Showing with 1 addition and 1 deletion.
  1. +1 −1 viack
View
2 viack
@@ -44,7 +44,7 @@ if ($pid) {
# git vigrep
if ($via_git) {
- @opts = ("grep", "-H", "--perl-regexp");
+ @opts = ("grep", "-HI", "--perl-regexp");
$grep = "git";
}
exec $grep => @opts, @ARGV

0 comments on commit 5540fa4

Please sign in to comment.