mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Support copies with :Gclog --follow
Resolves: https://github.com/tpope/vim-fugitive/issues/1891
This commit is contained in:
@@ -5784,7 +5784,7 @@ function! s:LogParse(state, dir, prefix, line) abort
|
||||
endif
|
||||
elseif a:state.follow &&
|
||||
\ a:line =~# '^ \%(mode change \d\|\%(create\|delete\) mode \d\|\%(rename\|copy\|rewrite\) .* (\d\+%)$\)'
|
||||
let rename = matchstr(a:line, '^ rename \zs.* => .*\ze (\d\+%)$')
|
||||
let rename = matchstr(a:line, '^ \%(copy\|rename\) \zs.* => .*\ze (\d\+%)$')
|
||||
if len(rename)
|
||||
let rename = rename =~# '{.* => .*}' ? rename : '{' . rename . '}'
|
||||
if a:state.target ==# simplify('/' . substitute(rename, '{.* => \(.*\)}', '\1', ''))
|
||||
|
||||
Reference in New Issue
Block a user