[LLVMdev] committing with the git mirror

Garrison Venn gvenn.cfe.dev at gmail.com
Mon Jun 20 08:50:13 PDT 2011


Thanks Takumi for doing this. For someone who has not used git with LLVM,
although has for other non-svn backend projects, this will greatly help if and when I 
convert over to git for LLVM. I would second the motion for more documentation
in this direction.

Garrison

On Jun 20, 2011, at 6:35, NAKAMURA Takumi wrote:

> Good evening, Jay!
> 
> ...Instructions, ...
> 
> 1. git clone http://llvm.org/git/XXX.git (assume it "origin")
> 
> 2. Create git authors file (assume /path/to/file/of/authors) with single line.
> 
> foad = Jay Foad <jay.foad at gmail.com>
> 
> Oh yeah, you should define your name and mailto same as described in
> llvm.org/git with case-sensitive.
> 
> 3. Edit .git/config manually :p
> 
> [svn]
>        authorsFile = /path/to/file/of/authors
> [svn-remote "svn"]
>        url = https://llvm.org/svn/llvm-project/XXX/trunk
>        fetch = :refs/remotes/origin/master
> 
> 4. git svn fetch
> 
>  You would not perform "git-svn rebase" any more.
> 
> They above are all setup to live with git-svn.
> 
> 
> 5. Enjoy your life with git-pull and git-fetch.
>  (please not forget to track origin/master)
> 
> 
> When you have commits, ....
> 
> 6. git-checkout and git-pull --rebase on master.
> 
> 7. cherry-pick your commits to master.
> 
> 8. (Optional) Confirm with dry-run; git svn dcommit -n
> 
> 9. Are you ready? "git svn dcommit"!
> 
> 
> Thanks to git guys, esp. Tobi!
> 
> ...Takumi
> 
> ps. I am planning to describe docs/Git.html, but I am not familiar to English!!!
> 誰か翻訳, 査読などお願いします。マジで!
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list