git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why are submodules not automatically handled by default or at least configurable to do so?
@ 2015-10-25 23:10 John Smith
  2015-10-26  0:56 ` Chris Packham
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: John Smith @ 2015-10-25 23:10 UTC (permalink / raw)
  To: git

I found that I use submodules much, much more often in my git projects than I used externals
in Subversion and the reason is that git encourages/forces to organize large projects into
smaller repositories, one reason for this being that subversion allows to check out parts of 
a repository while git does not.

But when I clone a git repository with subprojects, I (and everyone else) has to remember to
add the --recursive option. When switching between branches with different versions/commits of the 
submodules everyone has to remember to update the submodules. When updating a submodule 
everyone has to remember to recurse there too. 

Basically, everything with submodules has to be done manually every time and there seems 
to be no way to change that default.

Why is that? Basically all the time I use submodules I would want automatic handling of 
submodules to happen and I cannot  remember having had a single situation where I would 
not have wanted it to happen. So  why does git default to doing nothing? 
Why does it not provide a way to enable automatic
pulling/updating of submodules e.g. when cloning or switching branches?
When would people routinely check out a branch and want to stay with the submodules as 
the have been checked out for the old branch?

I honestly do not understand it. 

John

____________________________________________________________
Can't remember your password? Do you need a strong and secure password?
Use Password manager! It stores your passwords & protects your account.
Check it out at http://mysecurelogon.com/manager

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-10-28  7:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-25 23:10 Why are submodules not automatically handled by default or at least configurable to do so? John Smith
2015-10-26  0:56 ` Chris Packham
2015-10-26 16:28   ` Stefan Beller
2015-10-26 19:53     ` Junio C Hamano
2015-10-26  4:48 ` Nazri Ramliy
2015-10-26 16:56   ` Jens Lehmann
2015-10-28  7:36     ` Nazri Ramliy
2015-10-27 10:50 ` Nick
2015-10-27 10:56   ` Davide Fiorentino
2015-10-27 11:40     ` Nick
2015-10-27 12:16       ` Konstantin Khomoutov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).