projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Make the ProgramError class printable.
[git.git]
/
git-grep.sh
diff --git
a/git-grep.sh
b/git-grep.sh
index
db2296c
..
c77a2d0
100755
(executable)
--- a/
git-grep.sh
+++ b/
git-grep.sh
@@
-7,6
+7,11
@@
while :; do
flags="$flags $pattern"
shift
;;
+ -e)
+ pattern="$2"
+ shift
+ break
+ ;;
-*)
echo "unknown flag $pattern" >&2
exit 1
@@
-17,4
+22,4
@@
while :; do
esac
done
shift
-git-ls-files -z "$@" | xargs -0 grep $flags "$pattern"
+git-ls-files -z "$@" | xargs -0 grep $flags
-e
"$pattern"