grep -O: allow optional argument specifying the pager (or editor)
commit6f380034d14bf9464ddaffa22926ae016d687554
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 1 Jul 2009 22:19:52 +0000 (2 00:19 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 11 Jun 2010 14:20:04 +0000 (11 16:20 +0200)
treeead7820c2f7854f7d94bf6571edf795a96661ff5
parent55c5806414572bfe9592de67ea3f9472e41bac99
grep -O: allow optional argument specifying the pager (or editor)

Suppose you want to edit all files that contain a specific search term.
Of course, you can do something totally trivial such as

git grep -z -e <term> | xargs -0r vi +/<term>

but maybe you are happy that the same will be achieved by

git grep -Ovi <term>

now.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Documentation/git-grep.txt
builtin/grep.c