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.
Please sign in to leave a comment.
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?
I have solved the problem with the git log command. Thanks much.