Skip to content

rybak/intellij-copy-commit-reference

Repository files navigation

Copy Commit Reference

Build Version Downloads

Plugin for IntelliJ-based IDEs.

Provides a context menu item "Copy Commit Reference" in all VCS log views. It copies a reference to the commit in the same format as git log --format=reference.

This format is used to refer to another commit in a commit message. For example: commit 1f0fc1d (pretty: implement 'reference' format, 2019-11-20) in the git.git repository.

Screenshot of changed context menu in tab "Log"

Source code of the plugin is distributed under the terms of the MIT Licence. See LICENSE.txt for details.

Installation

Using IDE built-in plugin system

Stable version

Settings/Preferences > Plugins > Marketplace > Search for "Copy Commit Reference" > Install

Alpha version

  1. Add alpha channel as a Custom plugin repository.
    • Use https://plugins.jetbrains.com/plugins/list?channel=alpha&pluginId=dev.andrybak.intellij.copy_commit_reference as the repository URL.
    • You can also use https://plugins.jetbrains.com/plugins/alpha/list if you would like to get all plugins available in the alpha channel.
  2. Install the plugin through the Marketplace search as usual.

Manually

Download the latest release from GitHub or JetBrains Marketplace and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Building from source

  1. Run Gradle task buildPlugin:
    ./gradlew buildPlugin
    
  2. The plugin bundle will be available in directory build/distributions/.

Debugging from IntelliJ IDEA

  1. Open the project in IntelliJ IDEA
  2. Launch run configuration "Run IDE for UI Tests"

Plugin TODO list

See file TODO.md on branch todo


Plugin based on the IntelliJ Platform Plugin Template.