Remove legacy support for /relative/path

This commit is contained in:
Tim Pope 2019-08-15 17:00:21 -04:00
parent 03361373b1
commit a80b965d0d

View File

@ -944,15 +944,7 @@ function! fugitive#Find(object, ...) abort
endfunction
function! s:Generate(rev, ...) abort
let dir = a:0 ? a:1 : s:Dir()
let tree = s:Tree(dir)
let object = a:rev
if a:rev =~# '^/\.git\%(/\|$\)'
let object = a:rev[1:-1]
elseif a:rev =~# '^/' && len(tree) && getftime(tree . a:rev) >= 0 && getftime(a:rev) < 0
let object = ':(top)' . a:rev[1:-1]
endif
return fugitive#Find(object, dir)
return fugitive#Find(a:rev, a:0 ? a:1 : s:Dir())
endfunction
function! s:DotRelative(path, ...) abort