From: Henk <henk_westhuis@hotmail.com>
To: git@vger.kernel.org
Subject: Submodules and merge conflicts
Date: Thu, 21 May 2009 06:22:00 -0700 (PDT) [thread overview]
Message-ID: <1242912120853-2951928.post@n2.nabble.com> (raw)
We have a git repository with 2 submodules structured like this:
-Root
-Src
-Scripts [Submodule]
-Kernel [Submodule]
-Web
When someone makes changes in the Kernel submodule, the sha1 of the
submodule changes. This means that the repository that uses this submodule
also changes because the link to the submodule changes. This very often
causes confusion. Co-workers very often get merge-conflicts on the submodule
sha1 which are annoying and confusing.
The reason we like using submodules instead of having one larger repository
is that there are seperate teams working on each module. We also use other
version numbers voor the kernel and the appllications using the kernel.
Instead of using the sha1 of a specific revision in the submodule, I would
find it more logical to use a branch-name or tag. This way you can commit on
the submodule without having to commit the new submodule revision to the
main repository also.
I would like to hear your thoughts on this. Maybe we are using submodules
wrong, or maybe this is already possible.
Henk Westhuis
--
View this message in context: http://n2.nabble.com/Submodules-and-merge-conflicts-tp2951928p2951928.html
Sent from the git mailing list archive at Nabble.com.
next reply other threads:[~2009-05-21 13:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-21 13:22 Henk [this message]
2009-05-21 20:31 ` Submodules and merge conflicts Avery Pennarun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1242912120853-2951928.post@n2.nabble.com \
--to=henk_westhuis@hotmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).