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

Re: Submodules as first class citizens (was Re: Moving to subtrees for plugins?)

From
Jens Lehmann <jens.lehmann@web.de>
Date
Jun 11, 2015, 18:56 UTC
Message-ID
<5579D9FB.8050104@web.de>
In-Reply-To
<CABURp0qf3TCB5ofKG4=MHz1VP4_g8Es8=s9aefW4Sr2b6ZCz_A@mail.gmail.com>
Am 11.06.2015 um 18:11 schrieb Phil Hord:
Show 25 quoted lines
> On Tue, Jun 9, 2015 at 2:40 PM, Jens Lehmann <Jens.Lehmann@web.de> wrote:
>> Am 07.06.2015 um 08:26 schrieb Stefan Beller:
>>>
>>> On 06.06.2015 12:53, Luca Milanesio wrote:
>>>>>
>>>>> On 6 Jun 2015, at 18:49, Phil Hord <phil.hord@gmail.com> wrote:
>>>>> On Fri, Jun 5, 2015, 2:58 AM lucamilanesio <luca.milanesio@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>> Ideally, as a "git clone --recursive" already exists, I would like to
>>>>>> see a "git diff --recursive" that goes through the submodules as well
>>>>>> :-)
>>>>>>
>>>>>> Something possibly to propose to the Git mailing list?
>>
>>
>> Such an option makes lots of sense to me (though "--recurse-submodules"
>> should be its name for consistency reasons). This could be an alias for
>> "--submodule=full", as the "--submodule" option controls the format of
>> submodule diffs.
>
> To me, --recurse-submodules means submodules are still not first-class
> citizens.  But let's put that aside for a moment; I don't care about
> the switch name too much as long as I can configure
> 'diff.recurse-submodules = true'.

After somebody implemented the 'full' mode for 'diff --submodule', setting 'diff.submodule' to 'full' would make --recurse-submodules the default for diff (unless recursing into the submodules is overridden by either the global 'diff.ignoreSubmodules' or the per-submodule 'submodule.<name>.ignore' setting of course).

> [The following is rather long.  I'm sorry for that.  Feel free to look
> away when it gets too vague.]
Sorry, that was too long for todays git time budget ;-)
Previous: Phil HordNext: Heiko Voigt
Message 6 of 7 in “Submodules as first class citizens (was Re: Moving to subtrees for plugins?)”
  1. Phil HordJun 6, 2015
  2. Luca MilanesioJun 6, 2015
  3. Stefan BellerJun 7, 2015
  4. Jens LehmannJun 9, 2015
  5. Phil HordJun 11, 2015
  6. Jens LehmannJun 11, 2015
  7. Heiko VoigtJun 15, 2015

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.