Sertion / vscode-gitblame

Visual Studio Code Extension - See Git Blame info in status bar.
https://marketplace.visualstudio.com/items/waderyan.gitblame
MIT License
72 stars 31 forks source link

Add support for using remote URL in blame link expansion #50

Closed allight closed 5 years ago

allight commented 5 years ago

For some projects one can use the remote-endpoint to create a commit link. This adds a new token for gitblame.commitUrl '${project.remote}' that will expand to the current-branches upstream URL with the protocol, port-numbers, and trailing '.git' stripped off.

Test: Use git-blame with an AOSP tree and gitblame.commitUrl set to 'https://${project.remote}/+/${hash}'.

Sertion commented 5 years ago

Thank you for the pull request! From a glance it is looking good. I will take a closer look later this week and try to get a new version out this weekend.

allight commented 5 years ago

done.

Sertion commented 5 years ago

New version has been uploaded to the marketplace. It can take a day or two before it updates in your editor. Thank you for the feature request and the help building it!