[LLVMdev] git mirror
Peter Collingbourne
peter at pcc.me.uk
Wed Aug 4 17:58:31 PDT 2010
On Wed, Aug 04, 2010 at 06:45:51PM -0500, David Greene wrote:
> Do pushes to the LLVM git mirror get forwarded to the svn trunk
> automatically? For various reasons it may be more convenient
> for me to work on LLVM through git but I don't want to go through
> a lot of pain to send patches to trunk via git. It should be
> easy.
>
> Does anyone do their primary development via the git mirror? How
> well does it work?
Hi David,
I develop on LLVM and a number of subprojects using git. The mirror
is one way so I don't think it would work to push there even if
you had access. I use the git mirror primarily as a fast means of
fetching the latest commits, but for committing I use git-svn.
First I initialised git-svn:
git svn init https://llvm.org/svn/llvm-project/llvm/trunk
git update-ref refs/remotes/git-svn earl/master
# "earl" is my remote for git://github.com/earl/llvm-mirror.git
git svn fetch
This is what I do to prepare to commit:
git fetch earl
git update-ref refs/remotes/git-svn earl/master
git svn fetch # this will fetch any commits less than an hour old
git rebase git-svn
Then I use "git svn dcommit" to commit. You can probably script some
of this if you like.
Hope that helps.
Thanks,
--
Peter
More information about the llvm-dev
mailing list