Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » JGit: How to get branch from a commit id (How to find the branch from a particular commit id)
JGit: How to get branch from a commit id [message #784829] Fri, 27 January 2012 21:45 Go to previous message
kamalakannan muralidharan is currently offline kamalakannan muralidharan
Messages: 3
Registered: January 2012
Junior Member
Hi

I want the code snippet (using JGit), to get the branch on which a commit was made.
This code is needed because when a checkout happens from a commit ID, the normal api of getbranch returns the commit id (because it will be detached No_branch state). so i need to find the actual branch from commit ID


Regards
Kamal
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:History of selected resource broken?
Next Topic:strategy resolve resulted in: Failed
Goto Forum:
  


Current Time: Mon May 20 04:37:48 EDT 2013

Powered by FUDForum. Page generated in 0.01782 seconds