Remove legacy support for /relative/path
This commit is contained in:
parent
03361373b1
commit
a80b965d0d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user