git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RGC/PATCHv2] grep: submodule support

From
Chris Packham <judge.packham@gmail.com>
Date
Oct 15, 2010, 23:26 UTC
Message-ID
<1287185204-843-1-git-send-email-judge.packham@gmail.com>

Here is my updated grep support for submodules series. The old series can be seen here [1].

[1] http://article.gmane.org/gmane.comp.version-control.git/157599

This the actual implementation is far from complete but the first 3 patches should be OK on their own. Since the last series I've rebased to master on git.git so hopefully more people can try it out if they want to. I'll be travelling/moving for the next week or so I may be a little unresponsive.

The changes since last time are:
* use environment variables to pass some information to the sub-process
* a lot more options supported by create_sub_grep_argv, including
  rebuilding the pattern list.
* figure out the correct prefix based on the cwd & worktree (thanks Duy).
Chris Packham (4):
      grep: output the path from cwd to worktree
      grep_cache: check pathspec first
      add test for git grep --recursive
      grep: add support for grepping in submodules
Nguyễn Thái Ngọc Duy (1):
      worktree: provide better prefix to go back to original cwd
Next: Chris Packham
Message 1 of 15 in “[RGC/PATCHv2] grep: submodule support”
  1. Chris PackhamOct 15, 2010
  2. 1/5 worktree: provide better prefix to go back to original cwdChris Packham, Oct 15, 2010
  3. Jonathan NiederOct 16, 2010
  4. Chris PackhamOct 17, 2010
  5. Nguyen Thai Ngoc DuyOct 17, 2010
  6. Chris PackhamOct 18, 2010
  7. 2/5 grep: output the path from cwd to worktreeChris Packham, Oct 15, 2010
  8. 3/5 grep_cache: check pathspec firstChris Packham, Oct 15, 2010
  9. 4/5 add test for git grep --recursiveChris Packham, Oct 15, 2010
  10. 5/5 grep: add support for grepping in submodulesChris Packham, Oct 15, 2010
  11. Nguyen Thai Ngoc DuyOct 17, 2010
  12. Chris PackhamOct 18, 2010
  13. Nguyen Thai Ngoc DuyOct 18, 2010
  14. Jens LehmannOct 16, 2010
  15. Chris PackhamOct 17, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.