mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 04:53:45 -05:00
Fix backport of @ to old Git
This commit is contained in:
@@ -645,7 +645,7 @@ function! fugitive#Route(object, ...) abort
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if !exists('f')
|
if !exists('f')
|
||||||
let commit = substitute(matchstr(rev, '^[^:]\+\|^:.*'), '^@\%($|[^~]\)\@=', 'HEAD', '')
|
let commit = substitute(matchstr(rev, '^[^:]\+\|^:.*'), '^@\%($\|[~^]\|@{\)\@=', 'HEAD', '')
|
||||||
let file = substitute(matchstr(rev, '^[^:]\+\zs:.*'), '^:', '/', '')
|
let file = substitute(matchstr(rev, '^[^:]\+\zs:.*'), '^:', '/', '')
|
||||||
if file =~# '^/\.\.\=\%(/\|$\)\|^//\|^/\a\+:'
|
if file =~# '^/\.\.\=\%(/\|$\)\|^//\|^/\a\+:'
|
||||||
let file = file =~# '^/\.' ? simplify(getcwd() . file) : file[1:-1]
|
let file = file =~# '^/\.' ? simplify(getcwd() . file) : file[1:-1]
|
||||||
|
|||||||
Reference in New Issue
Block a user