summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f22cc3f)
raw | patch | inline | side by side (parent: f22cc3f)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 12 Sep 2005 20:24:55 +0000 (13:24 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 12 Sep 2005 20:24:55 +0000 (13:24 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-grep.sh | patch | blob | history |
diff --git a/git-grep.sh b/git-grep.sh
index db2296c330c0679c11d308441603171673cac763..c77a2d0067246092aa0ab38f74b885ed8b51d116 100755 (executable)
--- a/git-grep.sh
+++ b/git-grep.sh
flags="$flags $pattern"
shift
;;
+ -e)
+ pattern="$2"
+ shift
+ break
+ ;;
-*)
echo "unknown flag $pattern" >&2
exit 1
esac
done
shift
-git-ls-files -z "$@" | xargs -0 grep $flags "$pattern"
+git-ls-files -z "$@" | xargs -0 grep $flags -e "$pattern"