Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » JGit - ancestry-path
JGit - ancestry-path [message #1799755] Thu, 13 December 2018 09:57 Go to next message
Florian Saller is currently offline Florian SallerFriend
Messages: 1
Registered: December 2018
Junior Member

i am trying to find the commits directly between two SHA-1 .
As far as i understand i need to use the option -ancestry-path to do so.
On Git Bash that works perfectly.
Does JGit have a implementation or is there a workaround to archive what ancestry-path does?

Thanks in advance for any help.
Re: JGit - ancestry-path [message #1799850 is a reply to message #1799755] Fri, 14 December 2018 19:55 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1178
Registered: July 2009
Senior Member
Create a RevWalk, then use markStart() and markUninteresting() to mark the boundaries of the walk
and then walk the commit graph using next(). Don't forget to close the walk when it's no longer needed.
There are many examples in the JGit tests.
Previous Topic:LFS - .lfsconfig ignored on initial clone?
Next Topic:Error loading the SSH2 private keys
Goto Forum:

Current Time: Wed Jun 23 09:47:17 GMT 2021

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

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

Back to the top