Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Commit on Master with JGit API?(How can I test, if a git commit is on the master branch?)
Commit on Master with JGit API? [message #729690] Mon, 26 September 2011 19:03
Rob  is currently offline Rob Friend
Messages: 1
Registered: September 2011
Junior Member
Hi,

I would like to know, how I can test, if a git commit is on the master/ trunk using the JGIT API?
Now, I am walking through a git repository with a RevWalk, so that means I have access to the sha1 token of the commits.
What I tried:
- searching the Google, the JGit API & the forum here
- Creating the RevTree from the root (initial) commit and for each RevCommit according with the parents of a commit.

I know that it is possible using this command:
'git rev-list --first-parent master'
to get all the master tokens back.

How is that realized in the CLI for JGit?
But actually, I would prefer a way over the JGIT API. Smile

Thanks for your thoughts & time!
Rob
Previous Topic:History view: Show Notes History
Next Topic:Why are all local branches pushed by default?
Goto Forum:
  


Current Time: Mon Jun 17 02:41:29 GMT 2019

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

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

Back to the top