From af76267c6aa60a5bee46a53d805c5412820b855f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 12 Sep 2018 12:32:43 -0400 Subject: [PATCH] Fix backport of @ to old Git --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 9677f6b..86505e5 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -645,7 +645,7 @@ function! fugitive#Route(object, ...) abort endif endif if !exists('f') - let commit = substitute(matchstr(rev, '^[^:]\+\|^:.*'), '^@\%($|[^~]\)\@=', 'HEAD', '') + let commit = substitute(matchstr(rev, '^[^:]\+\|^:.*'), '^@\%($\|[~^]\|@{\)\@=', 'HEAD', '') let file = substitute(matchstr(rev, '^[^:]\+\zs:.*'), '^:', '/', '') if file =~# '^/\.\.\=\%(/\|$\)\|^//\|^/\a\+:' let file = file =~# '^/\.' ? simplify(getcwd() . file) : file[1:-1] -- 2.11.4.GIT