Files
git/builtin
Johannes Schindelin 6a5eac6a31 grep: Add the option '--open-files-in-pager'
This adds an option to open the matching files in the pager, and if the
pager happens to be "less" (or "vi") and there is only one grep pattern,
it also jumps to the first match right away.

The short option was chose as '-O' to avoid clashes with GNU grep's
options (as suggested by Junio).

So, 'git grep -O abc' is a short form for 'less +/abc $(grep -l abc)'
except that it works also with spaces in file names, and it does not
start the pager if there was no matching file.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2010-04-12 14:56:21 +02:00
..
2010-04-09 22:45:51 -07:00
2010-03-13 21:31:42 -08:00
2010-03-28 17:42:58 -07:00
2010-04-09 22:43:18 -07:00
2010-04-08 23:33:23 -07:00
2010-03-21 16:23:44 -07:00
2010-03-21 16:23:44 -07:00
2010-03-10 15:32:34 -08:00
2010-03-28 21:52:28 -07:00
2010-04-09 22:43:18 -07:00
2010-03-31 15:14:27 -07:00
2010-03-15 00:58:24 -07:00
2010-03-10 15:25:18 -08:00