From: Jan Hudec <bulb@ucw.cz>
To: Jan Wielemaker <wielemak@science.uva.nl>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Workflow: split repository?
Date: Fri, 12 Oct 2007 16:30:43 +0200 [thread overview]
Message-ID: <20071012143043.GD7865@efreet.light.src> (raw)
In-Reply-To: <200710121421.39159.wielemak@science.uva.nl>
[-- Attachment #1: Type: text/plain, Size: 2633 bytes --]
On Fri, Oct 12, 2007 at 14:21:39 +0200, Jan Wielemaker wrote:
> Hi,
>
> I've got a big active project, until yesterday managed using CVS. As
> with any distributed academic research project the repository has become
> a nice mess where most files are in the wrong place and there are
> several almost independent sub-projects living in directories.
>
> The plan is/was to
>
> * Convert everything to GIT (done, through cvs2svn)
> * Everyone keeps hacking on their bits, while one is starting
> to reorganise the structure by moving files and directories
> and changing import headers, and other file references in
> a GIT branch.
> * Now we merge the continued work and the reorganisation to
> end up with a nice clean hierarchy :-)
> * Split the big project into multiple projects. One of the
> reasons is that we want to make part of them public. Others
> we cannot publish as they contain copyrighted data. I understand
> we can reunite them using GIT sub modules.
>
> Does this make sense?
It might make more sense to convert bit by bit, to separate git repositories.
Would save you some git-filter-branch work.
> While splitting we want to *loose* history information for some of the
> projects. That is easy: simply create a new repository from the current
> files. For some however we would like to *preserve* the history. This
> means we would like to pick a hierarchy with its history. After quite
> a bit of reading, I get the impression this cannot be done. Am I right?
It can, but you have to be aware of the pitfalls. Git allows you to create
a new history, which is defined modification of the original history. There
is git-filter-branch command, that can create a repository with just
a subtree and such. But it's a new, independent, history. You can't merge
between the old and new one (but you can rebase the few commits someone made
while you were converting) and anyone who has the old history in his repo
will still have it.
> Is the only way to create a GIT repositiory right away from a subset of
> the CVS for which we want to preserve the history?
No, it's not. It will save you work if you can do as much splitting as
possible during the conversion, ie. convert the bits you know will be
separate separately (and combine them using submodules as appropriate).
But if you have bits that will take a lot of work to factor out, you can
convert to git, make the other code ready to use a submodule and than use
git-filter-branch to extract the right bits of history for the submodule.
--
Jan 'Bulb' Hudec <bulb@ucw.cz>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-10-12 14:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-12 12:21 Workflow: split repository? Jan Wielemaker
2007-10-12 14:30 ` Jan Hudec [this message]
2007-10-12 14:57 ` Jan Wielemaker
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=20071012143043.GD7865@efreet.light.src \
--to=bulb@ucw.cz \
--cc=git@vger.kernel.org \
--cc=wielemak@science.uva.nl \
/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).