X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-grep.sh;h=ad4f2fe81046505c43684e8c26f0eeaac6cc6146;hb=2fa9a0fb31cbf01e8318a02c3e222d7fd3fd0a83;hp=db2296c330c0679c11d308441603171673cac763;hpb=f22cc3fcbfe7755154a3a151215abd39162e2e85;p=git.git diff --git a/git-grep.sh b/git-grep.sh index db2296c3..ad4f2fe8 100755 --- a/git-grep.sh +++ b/git-grep.sh @@ -1,20 +1,62 @@ #!/bin/sh -flags= -while :; do - pattern="$1" - case "$pattern" in - -i|-I|-a|-E|-H|-h|-l) - flags="$flags $pattern" - shift - ;; - -*) - echo "unknown flag $pattern" >&2 - exit 1 - ;; - *) - break - ;; - esac +# +# Copyright (c) Linus Torvalds, 2005 +# + +USAGE='[