X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-grep.sh;h=e7a35ebd707c6ef485a26f4e1ece57fa248e0106;hb=f6ab5bb265ac821d9aab3755059eeadb615f512b;hp=51924fd7c38a4fd70f59069a3eecbfe787626375;hpb=3db6b224cf36748b969acdd96b9fb2de641cd641;p=git.git diff --git a/git-grep.sh b/git-grep.sh index 51924fd7..e7a35ebd 100755 --- a/git-grep.sh +++ b/git-grep.sh @@ -40,4 +40,4 @@ while : ; do shift done git-ls-files -z "${git_flags[@]}" "$@" | - xargs -0 grep "${flags[@]}" "$pattern" + xargs -0 grep "${flags[@]}" -e "$pattern"