summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-09 06:55:47 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-09 06:55:47 (GMT)
commit5acd64edec37a7d9783af1a2be99772d466e8f02 (patch)
tree5cfc7699a2e5ac229ca34098489666f2971b104a /Documentation
parent1c57119c70332faf206b5c7e2f3639b96a221717 (diff)
downloadgit-5acd64edec37a7d9783af1a2be99772d466e8f02.zip
git-5acd64edec37a7d9783af1a2be99772d466e8f02.tar.gz
git-5acd64edec37a7d9783af1a2be99772d466e8f02.tar.bz2
builtin-grep: tighten argument parsing.
I mistyped git grep next -e '"^@"' '*.c' and got many hits that contain "next" without complaint. Obviously what I meant to say was: git grep -e '"^@"' next -- '*.c' This tightens the argument parsing rule a bit: - All "grep" parameters should come first; - If there is no -e nor -f to specify pattern, the first non option string is the parameter; - After that, zero or more revs can follow. - An optional '--' can be present, and is skipped. - All the rest are pathspecs. If '--' was not there, they must be paths that exist in the working tree. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions