grep -O: allow optional argument specifying the pager (or editor)
commit78577c6a9f50761f3d08d654f72cb2ebdd953d99
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 1 Jul 2009 22:19:52 +0000 (2 00:19 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 12 Apr 2010 12:56:21 +0000 (12 14:56 +0200)
treebe18aef43f3b4288caa407c768ad07358e271d6d
parent6a5eac6a3150eb6bd650ea1eda0c24d273660ccc
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