motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit ddd0513071beba6a4b07730f045d7ae825652cd6 (tree)
parent b44b7b8ae77b00d30a0e20875152769d5124f8d1
Author: Maksim Odnoletkov <odnoletkov@mail.ru>
Date:   Sat, 23 Feb 2019 00:13:39 +0000

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.

Diffstat:
Mautoload/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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:]]')