From ddd0513071beba6a4b07730f045d7ae825652cd6 Mon Sep 17 00:00:00 2001 From: Maksim Odnoletkov Date: Sat, 23 Feb 2019 00:13:39 +0000 Subject: [PATCH] Reblame at HEAD from dirty lines HEAD blame seems to be much more useful than index blame. You can continue following evolution of the line with further jumps while before you got struck on 'not yet committed' line if it was already added to the index. --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 880feea..512827d 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3895,7 +3895,7 @@ function! s:BlameJump(suffix) abort let commit = matchstr(getline('.'),'^\^\=\zs\x\+') let suffix = a:suffix if commit =~# '^0\+$' - let commit = ':0' + let commit = 'HEAD' let suffix = '' endif let lnum = matchstr(getline('.'),' \zs\d\+\ze\s\+[([:digit:]]')