Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » [JGit] First time checkout(Creating a working copy with JGit.)
[JGit] First time checkout [message #536808] Mon, 31 May 2010 07:05 Go to next message
Andrey  is currently offline Andrey
Messages: 10
Registered: May 2010
Junior Member
Hi,

Trying to discover the ability of checkout files from remote repository to local folder using JGit.

I got stuck after repository creation.
Repository repo = new Repository(new File("C:\\git\\new"));
RepositoryConfig config = repo.getConfig();
config.setString("remote", "origin", "url", "http://www.kernel.org/pub/scm/git/git.git");
repo.create();


My understanding is I should somehow get a Tree object but all attempts failed.

Any examples appriciated.

Thanks.
Re: [JGit] First time checkout [message #536895 is a reply to message #536808] Mon, 31 May 2010 12:49 Go to previous messageGo to next message
Andrey  is currently offline Andrey
Messages: 10
Registered: May 2010
Junior Member
Resolved using EGit code (org.eclipse.egit.core.op.CloneOperation).
Re: [JGit] First time checkout [message #538090 is a reply to message #536895] Fri, 04 June 2010 21:48 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias Sohn
Messages: 594
Registered: July 2009
Senior Member
We are working on new CheckoutCommand in the new JGit porcelain API. This will help to make this easier.
Re: [JGit] First time checkout [message #538224 is a reply to message #538090] Sun, 06 June 2010 18:00 Go to previous messageGo to next message
Andrey  is currently offline Andrey
Messages: 10
Registered: May 2010
Junior Member
Sounds good. Smile

Hope, it will be well documented since it's a very painful to discover JGit... Crying or Very Sad
Re: [JGit] First time checkout [message #581224 is a reply to message #538090] Sun, 06 June 2010 18:00 Go to previous message
Andrey  is currently offline Andrey
Messages: 10
Registered: May 2010
Junior Member
Sounds good. :)

Hope, it will be well documented since it's a very painful to discover JGit... :cry:
Previous Topic:Not possible to vote on EGit bugs?
Next Topic:NPE when pasting github URL in push wizard
Goto Forum:
  


Current Time: Fri Oct 31 17:19:13 GMT 2014

Powered by FUDForum. Page generated in 0.01769 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software