How to open the git windows and focuse on special brance and commit?
Answered
I developing a plugin work with git.And I want to open the git windows and focuse on special brance and commit by branch name and the commit id.
I found I can open the git window by code blew :
ProjectLevelVcsManager.getInstance(project).showConsole();
But I have no idea how to focuse on special branch and commit. I'll appreciate it if anyone give me a solution.
Please sign in to leave a comment.
Hi,
Please check
git4idea.log.GitShowCommitInLogAction
.Thanks,I solve the problem,Here is the code :