Skip to content

RFC submodule aware grep

Chris Packham git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2contrib: add git-submodule-grep.shcontrib/git-submodule-grep.sh+35 -00 replies
2/2submodule: add grep commandgit-sh-setup.sh git-submodule.sh+58 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] submodule aware grep

This series contains 2 RFC patches that both implement a grep feature for submodules. The first patch is a self-contained script for contrib that should work with most current git versions. The 2nd is basically the same implementation but done as a proper git submodule command with some of the helper code moved to git-sh-setup.sh

There are a couple of questions for this. Technically I'm making submodule grep-aware, should I be making grep submodule-aware instead? I haven't looked at the grep code yet but I imagine its harder.

Should I be putting the submodule_root* routines in git-sh-setup or should I be looking at adding it to 'git rev parse' instead. I'm guessing eventually more commands might want to be able to get at the base superproject.

Chris Packham (2):
contrib: add git-submodule-grep.sh
submodule: add grep command