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

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

From
Josh Steadmon <steadmon@google.com>
Date
Feb 1, 2022, 21:33 UTC
Message-ID
<YfmnJY6CMF2MP7u4@google.com>
In-Reply-To
<xmqqilu7t4nm.fsf@gitster.g>
On 2022.01.25 22:03, Junio C Hamano wrote:
Show 13 quoted lines
> Elijah Newren <newren@gmail.com> writes:
> 
> > But how would that interact with this patch?  There's a bit of a
> > conflict.  There's a few ways out:
> >   * Make your change be explicit rather than implicit: Based on
> > Junio's first concern, you could modify this patch so that it requires
> > a new flag like --filter-submodules-too (or some better name), and
> > perhaps folks with a path filter just wouldn't use that.
> 
> I would very much prefer this, given that this is a change of
> default proposed by those who want a different default than the
> status quo, even without the "how would we know it is sensible to
> just pass down any and all filters?" issue.

Yes, I think a new flag (and corresponding set-and-forget config option) is the right approach. I'll include that in V2.

Out of curiosity, does the project have specific principles about changing default behavior? For example, would it make sense to plan a path for --this-new-flag to gradually become the default, or is that something we'd only consider with a new major-version release?

Just thinking out loud: it should be possible for us at $job and other people in similar situations with a managed Git installation to look through traces and see how often people are using or not using a particular flag or config option, and that could in theory guide such decisions. On the other hand, I don't think that Git users at megacorps are sufficiently representative of all Git users to be the basis for justifying such a change, so we'd need outside feedback as well. Not trying to suggest any particular agenda or approach here, just wondering if others have thoughts on this topic.

Previous: Junio C HamanoNext: Elijah Newren
Message 5 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.