git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why do git submodules require manual checkouts and commits?
@ 2008-05-16  4:16 skillzero
  2008-05-16 10:17 ` Johannes Schindelin
  2008-05-16 13:43 ` Avery Pennarun
  0 siblings, 2 replies; 9+ messages in thread
From: skillzero @ 2008-05-16  4:16 UTC (permalink / raw)
  To: git

Why do git submodules require manually committing the submodule itself
to each super repository after something in the submodule repository
changes? Is there some reason the super repository can't just "link"
to the submodules by branch name? It seems that if the .gitsubmodules
also specified the branch to use:

[submodule "libfoo"]
	path = libs/foo
	url = git://foo.com/git/libfoo.git
	branch = master

[submodule "libbar"]
	path = libs/bar
	url = git://bar.com/git/libbar.git
	branch = stable

Then a git pull (or git clone) of the super repository could also pull
in all submodules. A commit to a file in a submodule would then be
automatically reflected in the super repository (since the super
repository would always pull HEAD of that branch).

Is this difficult (or somehow undesirable)?

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

end of thread, other threads:[~2008-05-19  4:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-16  4:16 Why do git submodules require manual checkouts and commits? skillzero
2008-05-16 10:17 ` Johannes Schindelin
2008-05-16 13:43 ` Avery Pennarun
2008-05-16 13:58   ` Johannes Schindelin
2008-05-16 14:12     ` Avery Pennarun
2008-05-16 14:24       ` Johannes Schindelin
2008-05-16 14:44         ` Avery Pennarun
2008-05-16 14:58         ` Lars Hjemli
2008-05-19  4:38   ` skillzero

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).