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

Re: [GSoC] My Git Dev Blog – Week 11

From
Christian Couder <christian.couder@gmail.com>
Date
Aug 2, 2021, 06:52 UTC
Message-ID
<CAP8UFD0V3hoDUkeMyAaeo_=cZ46P-Yka1v67FFNbQ5Me5Hh_+g@mail.gmail.com>
In-Reply-To
<m2k0l5xo1q.fsf@gmail.com>
On Sun, Aug 1, 2021 at 4:00 PM Atharva Raykar <raykar.ath@gmail.com> wrote:
> Here it is:
> https://atharvaraykar.me/gitnotes/week11
Great, thanks!
Show 5 quoted lines
> > Preview:
> >
> > - Project progress: where I discuss a rough plan for making ’git
> > submodule’ a
> >   true builtin.
So your plan is the following:
  - Rename git-submodule.sh to git-submodule-legacy.sh.
  - Create builtin/submodule.c, that will read from a config switch
called ‘submodule.useBuiltin’. If this is set to false, just call the
legacy shell script, else use the builtin versions.
  - Copy the functions from builtin/submodule--helper.c to
builtin/submodule.c one by one. Make necessary changes in the flag
parsing.
  - Once all the functions have been successfully copied, make the
default value of submodule.useBuiltin to true.
  - …eventually remove submodule--helper.c and the shell script
entirely, and deprecate the ‘submodule.useBuiltin’ option.

I wonder though how in the tests you are going to check both the new builtin submodule and the old git-submodule.sh? Do you plan to run the tests twice (once with submodule.useBuiltin set to true, and once with it set to false)?

Previous: Atharva RaykarNext: Atharva Raykar
Message 3 of 6 in “[GSoC] My Git Dev Blog – Week 11”
  1. Atharva RaykarAug 1, 2021
  2. Atharva RaykarAug 1, 2021
  3. Christian CouderAug 2, 2021
  4. Atharva RaykarAug 2, 2021
  5. Johannes SchindelinAug 16, 2021
  6. Atharva RaykarAug 17, 2021

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.