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

Re: [PATCH 2/3] builtin/fetch: parse recurse-submodules-default at default options parsing

From
Stefan Beller <sbeller@google.com>
Date
Jun 27, 2017, 03:00 UTC
Message-ID
<CAGZ79kZUkQCEEcLUcg8tSr33Wng1Fq4_i4n80+Xr45y0mcvB6A@mail.gmail.com>
In-Reply-To
<xmqq1sqab436.fsf@gitster.mtv.corp.google.com>
On Fri, Jun 23, 2017 at 5:51 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
>>>>       if (recurse_submodules != RECURSE_SUBMODULES_OFF) {
>>>> -             if (recurse_submodules_default) {
>>>> -                     int arg = parse_fetch_recurse_submodules_arg("--recurse-submodules-default", recurse_submodules_default);
>>>> -                     set_config_fetch_recurse_submodules(arg);
>>>> -             }
>>>> +             if (recurse_submodules_default != RECURSE_SUBMODULES_DEFAULT)
>>>> +                     set_config_fetch_recurse_submodules(recurse_submodules_default);
>>>
>
> I am not talking about the outer "if" condition.

I agree with your analysis, my answer was evasive. I'll dig into the details why we do not set the default by default.

Previous: Junio C HamanoNext: Stefan Beller
Message 8 of 10 in “pull: optionally rebase submodules”
  1. 0/3 pull: optionally rebase submodulesStefan Beller, Jun 23, 2017
  2. 1/3 builtin/fetch: factor submodule recurse parsing out to submodule configStefan Beller, Jun 23, 2017
  3. Junio C HamanoJun 23, 2017
  4. 2/3 builtin/fetch: parse recurse-submodules-default at default options parsingStefan Beller, Jun 23, 2017
  5. Junio C HamanoJun 23, 2017
  6. Stefan BellerJun 23, 2017
  7. Junio C HamanoJun 24, 2017
  8. Stefan BellerJun 27, 2017
  9. builtin/fetch cleanup: always set default value for submodule recursingStefan Beller, Jun 27, 2017
  10. 3/3 pull: optionally rebase submodules (remote submodule changes only)Stefan Beller, Jun 23, 2017

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.