How to get the branch info from commit info(like VcsFullCommitDetails in intellij) through the API provide by git4Idea

Answered



Every coed commit in git means a VcsFullCommitDetails  object in intellij, I want to know the commit associated branch infomation, Is there any API to use?

 

I try to use GitSimpleHandler with GitCommand.BRANCH from git4idea, but I can't get the right parameters from the object typed VcsFullCommitDetails.

0
2 comments

Could you please clarify what exactly you want to achieve? What exact information do you need and how will you use it further? 

BTW,  GitSimpleHandler is deprecated, why do you use it?

0

I have solved the problem with the git log command. Thanks much.

0

Please sign in to leave a comment.