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

Re: Submodules

From
SVSven Verdoolaege <skimo@kotnet.org>
Date
Aug 8, 2007, 10:27 UTC
Message-ID
<20070808102710.GI999MdfPADPa@greensroom.kotnet.org>
In-Reply-To
<a1bbc6950708071610g4ea4d874t458cec14a444b519@mail.gmail.com>
On Tue, Aug 07, 2007 at 04:10:38PM -0700, Dmitry Kakurin wrote:
Show 5 quoted lines
> Yeah, I've already went thru these. But I want (much) more details.
> I can ask a bunch of random questions on this list, like:
> 
> * Why after 'submodule update' it becomes detached, what if I want it
> to stay on certain branch?

You'd need to have a way to specify which branch you want to have updated. There was some discussion about this some time ago and the general conclusion was that a detached HEAD was the best solution.

> * How do I control which branches are fetched?
Currently, you can't.
> * What if I do 'commit -a' standing in /super, will /super/submodule
> commit as well?
No.
> * What if I'm standing in /super/submodule and do 'commit -a'? Will
> super notice it in any way?

Any commit in the submodule will be seen as a "change" to the submodule from the perspective of the supermodule.

skimo
Previous: Dmitry KakurinNext: Johannes Schindelin
Message 4 of 19 in “Submodules”
  1. Dmitry KakurinAug 7, 2007
  2. Johannes SchindelinAug 7, 2007
  3. Dmitry KakurinAug 7, 2007
  4. Sven VerdoolaegeAug 8, 2007
  5. Johannes SchindelinAug 7, 2007
  6. Dmitry KakurinAug 7, 2007
  7. Johannes SchindelinAug 8, 2007
  8. Sven VerdoolaegeAug 8, 2007
  9. Junio C HamanoAug 8, 2007
  10. Johannes SchindelinAug 8, 2007
  11. Junio C HamanoAug 8, 2007
  12. Sven VerdoolaegeAug 8, 2007
  13. Junio C HamanoAug 8, 2007
  14. Johannes SchindelinAug 8, 2007
  15. Junio C HamanoAug 8, 2007
  16. Andy ParkinsAug 8, 2007
  17. Johannes SchindelinAug 8, 2007
  18. Sven VerdoolaegeAug 9, 2007
  19. Sven VerdoolaegeAug 8, 2007

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.