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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user