Add entry to Git log branches context menu

已回答

I want to create a plugin that adds an entry to the context menu when the user performs a right click on the branches in git log. What is the corresponding group id? 



Currently I only have the item in the context menu of the commits

    <extensions defaultExtensionNs="com.intellij">
    </extensions>

    <actions>
       <action id="GitlabMergeRequestAction"
               class="com.mypackage.myplugin.action.MyAction"
               text="Custom context menu entry">
               <add-to-group group-id="Git.Log.ContextMenu" anchor="first"/>
       </action>
    </actions>

0

Hi Kevin,

Unfortunately, this one doesn't seem to be extendable. These actions are created programmatically, and I don't see a registered group for them.

See: https://github.com/JetBrains/intellij-community/blob/master/plugins/git4idea/src/git4idea/ui/branch/GitBranchPopupActions.java

You may consider requesting a possibility of doing it on https://youtrack.jetbrains.com/issues/IDEA.

1

请先登录再写评论。