path: root/
diff options
authorLinus Torvalds <>2005-09-12 23:46:53 (GMT)
committerJunio C Hamano <>2005-09-13 02:15:02 (GMT)
commit5d9d831a51dc7847ad40fac77f9a072aa2d1c0bd (patch)
treef40840571e7188f736e4e724a0e0b49f7e51a2af /
parent4e48fe3f1c42519f1aad92176489eeb174a319c0 (diff)
Improve "git grep" flags handling
This allows any arbitrary flags to "grep", and knows about the few special grep flags that take an argument too. It also allows some flags for git-ls-files, although their usefulness is questionable. With this, something line git grep -w -1 pattern works, without the script enumerating every possible flag. [jc: this is the version Linus sent out after I showed him a barf-o-meter test version that avoids shell arrays. He must have typed this version blindly, since he said: I'm not barfing, but that's probably because my brain just shut down and is desperately trying to gouge my eyes out with a spoon. I slightly fixed it to catch the remaining arguments meant to be given git-ls-files.] Signed-off-by: Linus Torvalds <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions