Replies: 1 comment 1 reply
-
git blame -L 42,42 path/to/file |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, to open a commit from a blame I take advantage of how
<CR>
opens a:Gdiffsplit
when the cursor is on the 'diff --git' line of a commit view. Mapping in ~/.vim/after/ftplugin/fugitiveblame.vim with:However, is it possible to skip opening the commit? Sometimes our commits are huge and slow to open (binary files and bad merges, I can't prevent it). If I could
:Gedit sha:file
and then:Gdiff sha~
, then that should work. But I don't know how to getfile
because the fugitiveblame file is a temp file.Even worse, I actually always use
:%G blame
to skip the scrollbind and just view the blame contents so there isn't another window with the file.Is there some way to get the filename for the current blame buffer?
Beta Was this translation helpful? Give feedback.
All reactions