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 endfunction
function! s:Generate(rev, ...) abort function! s:Generate(rev, ...) abort
let dir = a:0 ? a:1 : s:Dir() return fugitive#Find(a:rev, 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)
endfunction endfunction
function! s:DotRelative(path, ...) abort function! s:DotRelative(path, ...) abort