From: Junio C Hamano <gitster@pobox.com>
To: "Eoin Hennessy" <eoin.hennessy@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: GIT + CVS workflow query.
Date: Tue, 26 Jun 2007 17:36:56 -0700 [thread overview]
Message-ID: <7vbqf2xmfr.fsf@assigned-by-dhcp.pobox.com> (raw)
In-Reply-To: <47281e410706261520r5b3549c7t39d93924d0a8ceea@mail.gmail.com> (Eoin Hennessy's message of "Tue, 26 Jun 2007 23:20:24 +0100")
"Eoin Hennessy" <eoin.hennessy@gmail.com> writes:
> I'd like to use GIT to track changes in a CVS repository. As well as
> tracking changes, I will also need to push patches back to CVS from
> GIT. My workflow is currently as follows:
>
> - Use git-cvsimport to import and update a mirror of the CVS
> repository; 'project.git'.
> - Pull changes from the mirror to a cloned working copy; 'project'.
> - Fix bugs in the working copy and push commits back to the mirror.
Fix bugs, yes, but push back to the mirror is probably not what
you want.
> - Use git-cherry to identify commits in master not currently in the
> branch updated by git-cvsimport. Then use git-cvsexportcommit to push
> these commits into a CVS checkout.
What I do with my day-job project is that I keep a separate CVS
checkout like you do, and
- cvsimport keeps track of the "project.git" mirror as you do;
- pull changes from that to my "project" as you do (but see below);
- fix things in "project", as you do;
- identify the needed changes with 'git-cherry' as you do;
- exportcommit to push them back to CVS through the CVS checkout;
Then the next cvsimport will get my changes (among other
people's changes) to "project.git".
- fetch changes from the "project.git" to my "project";
- 'git-rebase' my changes on top of the tip of "project.git";
This will remove the duplicates that I had but now are in CVS.
prev parent reply other threads:[~2007-06-27 0:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-26 22:20 GIT + CVS workflow query Eoin Hennessy
2007-06-26 22:46 ` Yann Dirson
2007-06-27 0:36 ` Junio C Hamano [this message]
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=7vbqf2xmfr.fsf@assigned-by-dhcp.pobox.com \
--to=gitster@pobox.com \
--cc=eoin.hennessy@gmail.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