Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Checking out commit
Checking out commit [message #1423052] Sat, 13 September 2014 21:09 Go to next message
Dario Panada is currently offline Dario PanadaFriend
Messages: 1
Registered: September 2014
Junior Member

I have a series of directories, each of which contain the same Git project (In this case asynchttpclient) as cloned from GitHub.

I also have a series of commit hashes.

I want to match each has to a directory, and check out that directory according to the hash.





And directories:

A, B

I want the project in A to be checked out on the first hash, and the one in B to be checked out to the second hash. I am using the jGit library. Any ideas on how I could do it?

Thanks! Very Happy
Re: Checking out commit [message #1423924 is a reply to message #1423052] Mon, 15 September 2014 07:19 Go to previous message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 270
Registered: July 2009
Senior Member
Something like: File(path-of-A)).checkout().setStartPoint(hash1-as-string).call(); File(path-of-B)).checkout().setStartPoint(hash2-as-string).call();

Previous Topic:Escape file name
Next Topic:gitignore and importing projects
Goto Forum:

Current Time: Sun Aug 09 00:34:18 GMT 2020

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

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

Back to the top