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

ar/submodule-update (wa Re: What's cooking in git.git (Feb 2022, #06; Wed, 23))

From
Glen Choo <chooglen@google.com>
Date
Feb 24, 2022, 17:48 UTC
Message-ID
<kl6lmtig40l4.fsf@chooglen-macbookpro.roam.corp.google.com>
In-Reply-To
<xmqq1qztortk.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 27 quoted lines
> * ar/submodule-update (2022-02-10) 20 commits
>  . fixup! submodule: move core cmd_update() logic to C
>  . fixup! submodule--helper run-update-procedure: learn --remote
>  . fixup! submodule--helper run-update-procedure: remove --suboid
>  . submodule: move core cmd_update() logic to C
>  . submodule--helper: reduce logic in run_update_procedure()
>  . submodule--helper: move functions around
>  . submodule--helper update-clone: learn --init
>  . submodule--helper: remove ensure-core-worktree
>  . submodule--helper run-update-procedure: learn --remote
>  . submodule--helper run-update-procedure: remove --suboid
>  . submodule--helper: reorganize code for sh to C conversion
>  . submodule--helper: remove update-module-mode
>  . submodule tests: test for init and update failure output
>  . submodule--helper: don't use bitfield indirection for parse_options()
>  . builtin/submodule--helper.c: rename option variables to "opt"
>  . builtin/submodule--helper.c: reformat designated initializers
>  . submodule--helper: run update using child process struct
>  . submodule--helper: allow setting superprefix for init_submodule()
>  . submodule--helper: refactor get_submodule_displaypath()
>  . submodule--helper: get remote names from any repository
>
>  Rewrite of "git submodule update" in C.
>
>  Does not seem to play well with other topics in flight, with heavy conflicts.
>  cf. <xmqqv8xj71mt.fsf@gitster.g>
>  source: <20220210092833.55360-1-chooglen@google.com>

I've dug a little deeper, and I think my plan to reroll this as two series [1] makes sense:

1. Small, obvious conversions from sh->C.
2. Finalizing the conversion.

(1) has only trivial conflicts, and is relatively easy to review, so I expect that to go through quickly.

This should also buy some time to finalize those other topics and hopefully make coordination simpler.

[1] https://lore.kernel.org/git/kl6l4k4y59p4.fsf@chooglen-macbookpro.roam.corp.google.com
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 6 of 8 in “What's cooking in git.git (Feb 2022, #06; Wed, 23)”
  1. Junio C HamanoFeb 24, 2022
  2. ab/commit-plug-leaks + ab/diff-free-more (was: What's cooking in git.git (Feb 2022, #06; Wed, 23))Ævar Arnfjörð Bjarmason, Feb 24, 2022
  3. Junio C HamanoFeb 24, 2022
  4. ab/c99 + ab/hook-tests (was: What's cooking in git.git (Feb 2022, #06; Wed, 23))Ævar Arnfjörð Bjarmason, Feb 24, 2022
  5. ab/object-file-api-updates (was: What's cooking in git.git (Feb 2022, #06; Wed, 23))Ævar Arnfjörð Bjarmason, Feb 24, 2022
  6. ar/submodule-update (wa Re: What's cooking in git.git (Feb 2022, #06; Wed, 23))Glen Choo, Feb 24, 2022
  7. Junio C HamanoFeb 24, 2022
  8. jc/cat-file-batch-commands (was: What's cooking in git.git (Feb 2022, #06; Wed, 23))John Cai, Feb 24, 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.