From: "Avery Pennarun" <apenwarr@gmail.com>
To: "Finn Arne Gangstad" <finnag@pvv.org>
Cc: "Roman Shaposhnik" <rvs@sun.com>,
"Tim Harper" <timcharper@gmail.com>,
git@vger.kernel.org
Subject: Re: Making submodules easier to work with
Date: Thu, 1 May 2008 15:55:22 -0400 [thread overview]
Message-ID: <32541b130805011255t4b37a73cx9d670b9250e787c6@mail.gmail.com> (raw)
In-Reply-To: <20080501183837.GA4772@pvv.org>
On Thu, May 1, 2008 at 2:38 PM, Finn Arne Gangstad <finnag@pvv.org> wrote:
> Today, submodules seem to be a "read-only" implementation of the
> supermodule. By that I mean that it is (only?) suited for creating a
> supermodule that consists of independently released submodules, where
> all development happens in the submodules, and you sometimes update
> the supermodule to refer to a new version of a submodule.
>
> What I've tried to achieve with submodules is a bit different: I want
> most development to happen in the supermodule _as if_ the submodules
> were part of the supermodule. There are two reasons for not doing it
> with one big module: Total size can be a bit too big, but most
> importantly, some submodules are shared between different super
> modules and there is a certain level of synchronizing. Does this match
> your scenarios in any way?
Your version (the second paragraph) matches my usage exactly. The
first paragraph does not, but I gather from some discussion on this
list that it does match some people's use cases, so I guess it should
continue to be available.
> o Branching "crawler" means branching "os-lib"
> o You can send a patch that contains changes both to "crawler" and "os-lib"
> and get it applied in a resonable way as ONE modification (and git-am
> would do the right thing)
> o Merging branch a and branch b in "crawler" also merges the matching
> branches a and b in "os-lib".
> o Pushing the supermodule also pushes the submodules
The above would fit fine into my workflow, although it might be more
fancy than I really need. Personally, I don't mind thinking of my
submodules as separate projects (ie. I should expect to commit,
branch, merge, and push separately). But if the above features
existed I would adjust my working style to use them, just for the
added day-to-day convenience factor.
Doing things like a single patch against one repo is a bit messy,
because (presumably) you'd have the same commit message in both repos,
which wouldn't really make sense.
> - Enable new behaviour with "git subdirectory" instead of "git submodule",
> and let "git submodule" keep the old behaviour.
If we get to the point where patchsets are gettingd sent around to
play with this, is it better to modify git-submodule or to create an
entirely new file? I don't know the preferred way of doing this.
Have fun,
Avery
next prev parent reply other threads:[~2008-05-01 19:56 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-30 4:08 Making submodules easier to work with (auto-update on checkout or merge, stash & restore submodules) Tim Harper
2008-04-30 4:47 ` Tim Harper
2008-04-30 6:14 ` Andreas Ericsson
2008-04-30 10:31 ` Johannes Schindelin
2008-04-30 16:47 ` Avery Pennarun
2008-04-30 17:21 ` Ping Yin
2008-04-30 19:55 ` Roman Shaposhnik
2008-04-30 20:26 ` Avery Pennarun
2008-04-30 20:19 ` Tim Harper
2008-04-30 20:31 ` Avery Pennarun
2008-04-30 21:37 ` Tim Harper
2008-04-30 21:48 ` Avery Pennarun
2008-04-30 22:23 ` Roman Shaposhnik
2008-04-30 22:28 ` Avery Pennarun
2008-05-01 18:38 ` Making submodules easier to work with Finn Arne Gangstad
2008-05-01 19:55 ` Avery Pennarun [this message]
2008-05-06 23:47 ` Roman Shaposhnik
2008-05-07 16:14 ` Avery Pennarun
2008-05-08 1:13 ` Ping Yin
2008-05-01 23:29 ` Steven Grimm
2008-05-06 23:17 ` Roman Shaposhnik
2008-05-01 4:56 ` Making submodules easier to work with (auto-update on checkout or merge, stash & restore submodules) Ping Yin
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=32541b130805011255t4b37a73cx9d670b9250e787c6@mail.gmail.com \
--to=apenwarr@gmail.com \
--cc=finnag@pvv.org \
--cc=git@vger.kernel.org \
--cc=rvs@sun.com \
--cc=timcharper@gmail.com \
/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).