motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit a80b965d0d47a92caffb57d020c4a43dd9dedf84 (tree)
parent 03361373b16d7c159699214293ee13ce7e5a814a
Author: Tim Pope <code@tpope.net>
Date:   Thu, 15 Aug 2019 17:00:21 -0400

Remove legacy support for /relative/path

Diffstat:
Mautoload/fugitive.vim | 10+---------
1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -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