f-person / git-blame.nvim

Git Blame plugin for Neovim written in Lua
GNU General Public License v3.0
884 stars 43 forks source link

feat: scope file urls to the latest commit #94

Closed bossley9 closed 1 year ago

bossley9 commented 1 year ago

The GitBlameOpenFileURL and GitBlameCopyFileURL commands construct file urls based on the remote url's current branch but disregard information that may have been committed since then, causing these commands to sometimes return the wrong line numbers. To fix this, I have modified these commands to use the latest commit SHA in the constructed file url. I believe this also fixes https://github.com/f-person/git-blame.nvim/issues/87.

f-person commented 1 year ago

Hi, Sam! Thank you for the PR; this is awesome! This is also a great default behavior! :)