Teach 'git grep' about --open-files-in-pager=[<pager>]
Get series with b4
b4 am 20100612162945.GB1406@burratinoVersions newest first · linked by author and title
- v3 Latest4 patches 6 repliesIn review
- v22 patches 6 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | grep: refactor grep_objects loop into its own functionbuiltin/ | +20 | 0 replies | |
| 2/4 | Unify code paths of threaded grepsbuiltin/ | +5 | 0 replies | |
| 3/4 | grep: Add the option '--open-files-in-pager'Documentation/ builtin/ git.c +4 more | +255 | 0 replies | |
| 4/4 | grep -O: allow optional argument specifying the pager (or editor)Documentation/ builtin/ t/ | +21 | 4 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Junio C Hamano | Paolo Bonzini |
|---|---|---|
| 1/4 | ||
| 2/4 | ||
| 3/4 | ||
| 4/4 | Noticed-by | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/4] Teach 'git grep' about --open-files-in-pager=[<pager>]
Quoted 1 line · Johannes Schindelin
Nope, the patch is still there, even after a rebase.
Ah, I see. Looks like a good patch (d00d655, Unify code paths of threaded greps, 2010-02-07) though in principle a separate topic, since grep -O already sets use_threads = 0. I think it is good to base grep-O on it because it allows cleaner code.
Here’s a rebased version.
Johannes Schindelin (3):
Unify code paths of threaded greps
grep: Add the option '--open-files-in-pager'
grep -O: allow optional argument specifying the pager (or editor)
Jonathan Nieder (1):
grep: refactor grep_objects loop into its own function
Documentation/git-grep.txt | 8 ++
builtin/grep.c | 121 ++++++++++++++++++++++------
git.c | 2 +-
t/lib-pager.sh | 15 ++++
t/t7006-pager.sh | 16 +---
t/{t7002-grep.sh => t7810-grep.sh} | 0
t/t7811-grep-open.sh | 157 ++++++++++++++++++++++++++++++++++++
7 files changed, 280 insertions(+), 39 deletions(-)
create mode 100644 t/lib-pager.sh
rename t/{t7002-grep.sh => t7810-grep.sh} (100%)
create mode 100755 t/t7811-grep-open.sh