Skip to content

Teach 'git grep' about --open-files-in-pager=[<pager>]

Jonathan Nieder git 2 versions In review

Get series with b4
b4 am 20100612162945.GB1406@burratino

Versions newest first · linked by author and title

  1. v3 Latest4 patches 6 repliesIn review
  2. v22 patches 6 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4grep: refactor grep_objects loop into its own functionbuiltin/grep.c+20 -100 replies
2/4Unify code paths of threaded grepsbuiltin/grep.c+5 -170 replies
3/4grep: Add the option '--open-files-in-pager'Documentation/git-grep.txt builtin/grep.c git.c +4 more+255 -130 replies
4/4grep -O: allow optional argument specifying the pager (or editor)Documentation/git-grep.txt builtin/grep.c t/t7811-grep-open.sh+21 -204 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchJunio C HamanoPaolo Bonzini
1/4
2/4
3/4
4/4Noticed-by A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

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