Hi, This document tells me how to do a "read-only GIT clone of LLVM": http://llvm.org/docs/GettingStarted.html#git_mirror Can someone please document how to get read-write access using git or git-svn, if it's possible? Or do I still have to use plain old svn to commit? (I have tried searching the mailing list to find out how to do this, but it seems like a lot of the information there is out of date.) Thanks, Jay.
Hi Jay,> Can someone please document how to get read-write access using git or > git-svn, if it's possible?As stated in the documentation, the mirror is read-only. You still have to use svn (or git-svn) to commit stuff. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
>> Can someone please document how to get read-write access using git or >> git-svn, if it's possible? > As stated in the documentation, the mirror is read-only. You still > have to use svn (or git-svn) to commit stuff.Could someone please document how to use git-svn with a clone of the read-only git mirror, then? I suppose I could figure it out myself, given enough time, but I'd really appreciate a "how to". (And if it's in the docs, rather than on the mailing list, it's less likely to get out of date in future, e.g. if the git mirror becomes read-write or something.) Thanks, Jay.
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!!! 誰か翻訳, 査読などお願いします。マジで!
2011/6/20 NAKAMURA Takumi <geek4civic at gmail.com>:> ...Instructions, ...Thank you for writing these instructions. This is much more complicated than I expected!> ps. I am planning to describe docs/Git.html, but I am not familiar to English!!!Please write the document if you can. We can correct the English afterwards if we need to. Thanks, Jay.
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
On 06/20/2011 07:35 AM, NAKAMURA Takumi wrote:> Good evening, Jay! > > ...Instructions, ... > > ps. I am planning to describe docs/Git.html, but I am not familiar to English!!!Yes. Just go ahead and submit a patch for docs/Git.html. CC me in the mail and I will review it. If the final version does not raise any concerns, I will commit it for you. Cheers and thanks for your offer Tobi