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

Re: git-gui and gitk-git as submodules (Re: [RFC PATCH 0/2] Teach "git status" the "--ignore-submodules" option)

From
Jens Lehmann <jens.lehmann@web.de>
Date
Jun 28, 2010, 19:00 UTC
Message-ID
<4C28F130.2090904@web.de>
In-Reply-To
<4C28EA0A.3080804@xiplink.com>
Am 28.06.2010 20:29, schrieb Marc Branchaud:
> On 10-06-26 07:45 AM, Jens Lehmann wrote:
> I applaud all the current submodule work -- thanks a ton!
Thanks for your feedback!
Show 6 quoted lines
> I would like to ask submodule developers to please keep in mind scenarios
> where only a subset of the super-project's submodules are in use at one time.
>  In particular, please avoid forcing any blanket updates to all submodules.
> I think the features being discussed would be much more useful if they only
> applied to submodules that are already initialized and updated by the user,
> and that any unintialized submodules should be left alone.

Yes. I think we agreed some time ago that until the user can configure the wanted behavior only populated submodules should be touched, so I don't mention that explicitly anymore.

Show 7 quoted lines
>> 1) Switching branches, merging, rebasing and resetting in the
>>    superproject must result in a checkout of the matching submodule
>>    work tree (right now you always have to issue a "git submodule
>>    update" afterwards to get the submodules in sync).
> 
> So, extending my request to this situation, I would say git should only
> update submodules that are already initialzied and updated.
Yes, see above.
Show 9 quoted lines
>> 2) On "git clone" the submodules must be cloned and checked out too
>>    (currently you have to do a "git submodule update --init" after
>>    cloning the superproject).
> 
> Making clone do this automatically would be a show-stopper for us.  The
> current '--recursive' option is fine (though we never use it).
> 
> It would be interesting if the super-project could configure which submodules
> to automatically clone.

That's what I have in mind too. Maybe we could use the 'update' option of .gitmodules to clone all those submodules where it is set. Then different branches with different .gitmodules would behave differently.

Previous: Marc BranchaudNext: Marc Branchaud
Message 11 of 12 in “Teach "git status" the "--ignore-submodules" option”
  1. 0/2 Teach "git status" the "--ignore-submodules" optionJens Lehmann, Jun 25, 2010
  2. 1/2 git submodule: ignore dirty submodules for summary and statusJens Lehmann, Jun 25, 2010
  3. 2/2 Add the option "--ignore-submodules" to "git status"Jens Lehmann, Jun 25, 2010
  4. Junio C HamanoJun 25, 2010
  5. git-gui and gitk-git as submodules (Re: [RFC PATCH 0/2] Teach "git status" the "--ignore-submodules" option)Jonathan Nieder, Jun 25, 2010
  6. Tay Ray ChuanJun 26, 2010
  7. Jens LehmannJun 26, 2010
  8. Jonathan NiederJun 26, 2010
  9. Jens LehmannJun 28, 2010
  10. Marc BranchaudJun 28, 2010
  11. Jens LehmannJun 28, 2010
  12. Marc BranchaudJun 28, 2010

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.