[PATCH v2 0/2] Teach 'git grep' about --open-files-in-pager=[<pager>]
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jun 5, 2010, 00:51 UTC
- Message-ID
- <20100605005116.GA8774@progeny.tock>
This series teaches ‘git grep’ to accept
git grep -Ovi some_function_name
to find all the call sites for some_function_name so they can be adjusted. Dscho’s cover letter[1] explains it better.
And in fact, Dscho did all the work here; this iteration just rebases it on master and adds some tests.
Happy hacking, Jonathan
Johannes Schindelin (2): grep: Add the option '--open-files-in-pager' grep -O: allow optional argument specifying the pager (or editor)
Documentation/git-grep.txt | 8 + builtin/grep.c | 81 +++++++- git.c | 2 +- t/lib-pager.sh | 15 ++ t/t7002-grep.sh | 530 -------------------------------------------- t/t7006-pager.sh | 16 +- t/t7810-grep.sh | 530 ++++++++++++++++++++++++++++++++++++++++++++ t/t7811-grep-open.sh | 157 +++++++++++++ 8 files changed, 792 insertions(+), 547 deletions(-) create mode 100644 t/lib-pager.sh delete mode 100755 t/t7002-grep.sh create mode 100755 t/t7810-grep.sh create mode 100644 t/t7811-grep-open.sh
[1] http://thread.gmane.org/gmane.comp.version-control.git/143219