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

Re: [PATCH v3] clone, submodule: pass partial clone filters to submodules

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 9, 2022, 23:37 UTC
Message-ID
<xmqqfsor628l.fsf@gitster.g>
In-Reply-To
<20220209224406.495563-1-jonathantanmy@google.com>
Jonathan Tan <jonathantanmy@google.com> writes:
Show 29 quoted lines
> Josh Steadmon <steadmon@google.com> writes:
>>  Documentation/config/clone.txt     |  5 ++++
>>  Documentation/git-clone.txt        |  7 ++++-
>>  Documentation/git-submodule.txt    |  6 ++++-
>>  builtin/clone.c                    | 36 ++++++++++++++++++++++++--
>>  builtin/submodule--helper.c        | 30 +++++++++++++++++++---
>>  git-submodule.sh                   | 17 ++++++++++++-
>>  t/t5617-clone-submodules-remote.sh | 41 ++++++++++++++++++++++++++++++
>>  t/t7814-grep-recurse-submodules.sh | 41 ++++++++++++++++++++++++++++++
>>  8 files changed, 175 insertions(+), 8 deletions(-)
>
> Thanks for this patch. "clone" currently calls "submodule update" in
> order to perform the clone in the submodule, and "submodule update" then
> calls "submodule--helper", so I would expect changes in all 3 files.
> Looking at the summary above, that indeed is the case.
>
>> @@ -544,4 +544,45 @@ test_expect_failure 'grep saves textconv cache in the appropriate repository' '
>>  	test_path_is_file "$sub_textconv_cache"
>>  '
>>  
>> +test_expect_success 'grep partially-cloned submodule' '
>
> [snip]
>
>> +		# Verify that we actually fetched data from the promisor remote:
>> +		grep \"category\":\"promisor\",\"key\":\"fetch_count\",\"value\":\"1\" trace2.log >/dev/null
>
> No need to redirect to /dev/null, but probably not worth a reroll on its
> own.
I can strip it while queuing, then.
> This patch looks good to me.
> Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Agreed.  Thanks, both.
Previous: Jonathan TanNext: Philippe Blain
Message 13 of 14 in “clone, submodule: pass partial clone filters to submodules”
  1. clone, submodule: pass partial clone filters to submodulesJosh Steadmon, Jan 21, 2022
  2. Junio C HamanoJan 22, 2022
  3. Elijah NewrenJan 25, 2022
  4. Junio C HamanoJan 26, 2022
  5. Josh SteadmonFeb 1, 2022
  6. Elijah NewrenJan 25, 2022
  7. Josh SteadmonFeb 1, 2022
  8. clone, submodule: pass partial clone filters to submodulesJosh Steadmon, Feb 5, 2022
  9. Josh SteadmonFeb 5, 2022
  10. Josh SteadmonFeb 5, 2022
  11. clone, submodule: pass partial clone filters to submodulesJosh Steadmon, Feb 5, 2022
  12. Jonathan TanFeb 9, 2022
  13. Junio C HamanoFeb 9, 2022
  14. t5617,t7814: remove unnecessary 'uploadpack.allowanysha1inwant'Philippe Blain, Feb 19, 2022

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.