All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Tan <jonathantanmy@google.com>
To: Josh Steadmon <steadmon@google.com>
Cc: Jonathan Tan <jonathantanmy@google.com>,
	git@vger.kernel.org, gitster@pobox.com, newren@gmail.com
Subject: Re: [PATCH v3] clone, submodule: pass partial clone filters to submodules
Date: Wed,  9 Feb 2022 14:44:06 -0800	[thread overview]
Message-ID: <20220209224406.495563-1-jonathantanmy@google.com> (raw)
In-Reply-To: <690d2316ad518ea4551821b2b3aa652996858475.1644034886.git.steadmon@google.com>

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.

This patch looks good to me.
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>

  reply	other threads:[~2022-02-09 22:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-21  3:32 [PATCH] clone, submodule: pass partial clone filters to submodules Josh Steadmon
2022-01-22  1:49 ` Junio C Hamano
2022-01-25 21:00   ` Elijah Newren
2022-01-26  6:03     ` Junio C Hamano
2022-02-01 21:33       ` Josh Steadmon
2022-01-25 21:08 ` Elijah Newren
2022-02-01 21:34   ` Josh Steadmon
2022-02-05  0:40 ` [PATCH v2] " Josh Steadmon
2022-02-05  0:54   ` Josh Steadmon
2022-02-05  1:00     ` Josh Steadmon
2022-02-05  5:00 ` [PATCH v3] " Josh Steadmon
2022-02-09 22:44   ` Jonathan Tan [this message]
2022-02-09 23:37     ` Junio C Hamano
2022-02-19 17:30   ` [PATCH] t5617,t7814: remove unnecessary 'uploadpack.allowanysha1inwant' Philippe Blain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220209224406.495563-1-jonathantanmy@google.com \
    --to=jonathantanmy@google.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=newren@gmail.com \
    --cc=steadmon@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.