From: Avery Pennarun <apenwarr@gmail.com>
To: Nick Colgan <nick.colgan@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Projects within projects
Date: Thu, 29 Oct 2009 14:56:36 -0400 [thread overview]
Message-ID: <32541b130910291156w693a188dv6dfd0d39a506d145@mail.gmail.com> (raw)
In-Reply-To: <ab1d51700910291140ncd80027j4ee9a30637d7bc40@mail.gmail.com>
On Thu, Oct 29, 2009 at 2:40 PM, Nick Colgan <nick.colgan@gmail.com> wrote:
> These are the current options I have in mind:
>
> 1. Create a separate repository for each sub-project and manage each
> separately in redmine (separate bug tracker, wiki, etc.)
>
> 2. Create a single repository with a subdirectory for each sub-project.
>
> 3. Use git submodules or subversion externals to combine options 1 and 2
> by creating a separate repo for each sub-project, then creating a master
> repo with subdirectory for each sub-project that imports from their
> respective repositories.
>
> What's the best way to handle this situation? Are git submodules and/or
> svn externals sufficiently capable of dealing with this?
Every way has tradeoffs. I'd suggest first thinking about whether
these supposedly independent projects are *really* going to be
independent or not. If they're unlikely to ever be reused - or they
won't be for a long time - #2 is by far the easiest choice.
If you choose #2 and then choose to split the repo later, you can use
git-subtree (http://github.com/apenwarr/git-subtree) to split it
easily, so there's little sacrifice in using #2 at first and changing
your mind later.
If you choose #3, that's exactly that git-submodule and svn:externals
are for, and it seems to work okay for a lot of people. It's more
work though, since you have to be careful to isolate commits between
one project and another, etc. Personally I prefer to use git-subtree
for this too, but it's a matter of preference.
Have fun,
Avery
next prev parent reply other threads:[~2009-10-29 18:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-29 18:40 Projects within projects Nick Colgan
2009-10-29 18:56 ` Avery Pennarun [this message]
2009-10-29 19:33 ` Bill Lear
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=32541b130910291156w693a188dv6dfd0d39a506d145@mail.gmail.com \
--to=apenwarr@gmail.com \
--cc=git@vger.kernel.org \
--cc=nick.colgan@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