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

Re: gc/recursive-fetch-with-unused-submodules (was Re: What's cooking in git.git (Mar 2022, #03; Mon, 14))

From
Glen Choo <chooglen@google.com>
Date
Mar 16, 2022, 20:54 UTC
Message-ID
<kl6lczillisz.fsf@chooglen-macbookpro.roam.corp.google.com>
In-Reply-To
<xmqqa6dpllmc.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 47 quoted lines
> Glen Choo <chooglen@google.com> writes:
>
>> Junio C Hamano <gitster@pobox.com> writes:
>>
>>> * gc/recursive-fetch-with-unused-submodules (2022-03-07) 10 commits
>>>  - submodule: fix latent check_has_commit() bug
>>>  - fetch: fetch unpopulated, changed submodules
>>>  - submodule: move logic into fetch_task_create()
>>>  - submodule: extract get_fetch_task()
>>>  - submodule: store new submodule commits oid_array in a struct
>>>  - submodule: inline submodule_commits() into caller
>>>  - submodule: make static functions read submodules from commits
>>>  - t5526: create superproject commits with test helper
>>>  - t5526: stop asserting on stderr literally
>>>  - t5526: introduce test helper to assert on fetches
>>>
>>>  When "git fetch --recurse-submodules" grabbed submodule commits
>>>  that would be needed to recursively check out newly fetched commits
>>>  in the superproject, it only paid attention to submodules that are
>>>  in the current checkout of the superproject.  We now do so for all
>>>  submodules that have been run "git submodule init" on.
>>>
>>>  Expecting a reroll.
>>>  cf. <kl6ly21p2q00.fsf@chooglen-macbookpro.roam.corp.google.com>
>>>  source: <20220308001433.94995-1-chooglen@google.com>
>>
>> Is 'Expecting a reroll.' accurate? <xmqqr17dp8s9.fsf@gitster.g>
>> indicated that this topic would be queued.
>
> "Queuing" is just that.  It may stay there for a while and be
> dropped unless it sees a decent progress (if it is expected to be
> further worked on).  That's vastly different from merging down to
> 'next'.
>
> I just re-read the message with "will queue" in it, and I only said
> the changes listed as updates from v4 looked all sensible, which
> does not mean the changes listed there are sufficient to correct all
> problems we may already had in v3.
>
> Downthread in <xmqq4k46nae4.fsf@gitster.g> and its response, I see
> we agree that "reading .gitmodules in a particular superproject
> commit is just as wrong as reading from the working tree---it should
> not be necessary to fetch in the submodule, and the API to get the
> necessary parameter to run fetch in the submodule should be cleaned
> up" and that "fixing that API can be left outside the scope of this
> topic for the sake of expediency".  I would at least expect the two
> decisions are described in an updated log message of relevant steps.

Thanks, that's really helpful :) I'll address next steps on that thread.

Previous: Junio C Hamano
Message 8 of 8 in “What's cooking in git.git (Mar 2022, #03; Mon, 14)”
  1. Junio C HamanoMar 14, 2022
  2. vd/stash-silence-reset (was: Re: What's cooking in git.git (Mar 2022, #03; Mon, 14))Victoria Dye, Mar 15, 2022
  3. Robert CoupMar 15, 2022
  4. Jeff HostetlerMar 15, 2022
  5. Junio C HamanoMar 15, 2022
  6. gc/recursive-fetch-with-unused-submodules (was Re: What's cooking in git.git (Mar 2022, #03; Mon, 14))Glen Choo, Mar 16, 2022
  7. Junio C HamanoMar 16, 2022
  8. Glen ChooMar 16, 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.