grep -O: allow optional argument specifying the pager (or editor)
commitc0d50e35f612535c16638b932287c91ed39f929a
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 1 Jul 2009 22:19:52 +0000 (2 00:19 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 30 Mar 2010 13:29:57 +0000 (30 15:29 +0200)
tree738f13e7be8e45c2c7430300b9e1dd462dd5dbf0
parent8e47f498ab4117d7f256f93d8d437dbbd4a999bb
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