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

Re: [RGC/PATCHv2] grep: submodule support

From
Chris Packham <judge.packham@gmail.com>
Date
Oct 17, 2010, 02:13 UTC
Message-ID
<4CBA5BC7.9090707@gmail.com>
In-Reply-To
<4CB9CAD3.7060109@web.de>
On 16/10/10 08:54, Jens Lehmann wrote:
Show 15 quoted lines
> Am 16.10.2010 01:26, schrieb Chris Packham:
>> Here is my updated grep support for submodules series.
> 
> Thanks Chris and Duy, I added this series to my git-submod-enhancements
> repo on github and will give it some testing next week.
> 
>> Chris Packham (4):
>>       grep: output the path from cwd to worktree
>>       grep_cache: check pathspec first
>>       add test for git grep --recursive
> 
> Hmm, is it useful to add tests before adding the feature tested? I
> thought it makes more sense to add them in the same commit or after
> adding what is tested (e.g. to reduce the noise when bisecting
> later). Or am I missing something here?

That's just reflects my personal preference to write the tests first (influenced by a former colleague who was keen on extreme programming/test driven development). Eventually these can be swapped or squashed as needed, for now it's probably easier to review them separately.

> 
> (And by the way: the test script should be executable)
OK will fix.
Show 6 quoted lines
> 
>>       grep: add support for grepping in submodules
> 
> Nit: The commit message (5/5) talks about the old option name
> "--recurse-submodules" instead of the "--recursive" the patch
> is adding.
Yeah I just noticed that. I'll update the commit message.
> 
>> Nguyễn Thái Ngọc Duy (1):
>>       worktree: provide better prefix to go back to original cwd
Previous: Jens Lehmann
Message 15 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.