ben-gibson / GitLink

A Jetbrains plugin that opens a local file under Git version control in its remote host using the default browser.
https://plugins.jetbrains.com/plugin/8183-gitlink
MIT License
727 stars 59 forks source link

{commit} placeholder gets replaced with short hash for commit link #301

Closed gavvvr closed 1 year ago

gavvvr commented 1 year ago

There is a short hash substituted in place of {commit} for "commit template" URL

How to reproduce?

1) Open any git repo cloned from remote 2) Go to Settings -> GitLink -> Custom Platform -> Press "+" 3) Fill in all required fields with any data 4) Fill in "Commit template" with {remote:url}/commit/{commit} 5) Finish Custom Platform creation 6) Go to Settings -> GitLink -> choose the "platform" you've just created -> Apply settings 7) Go to "Git Log" -> Right-click any commit and choose "Open in %YOUR_CUSTOM_PLATFORM_NAME%"

The link you will get will actually have a {commit:short} value in place of commit hash