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 d1d485cdef0415c5aa4b0a4e7d44c9e83fba70c0 (tree)
parent 8378b329b8ffd7cc1991cabcbe97a203968ae4be
Author: Tim Pope <code@tpope.net>
Date:   Tue, 31 May 2022 16:23:03 -0400

Leverage FugitiveActualDir() abstraction

Diffstat:
Mautoload/fugitive.vim | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -1686,8 +1686,8 @@ function! fugitive#Find(object, ...) abort let f = len(tree) && len(getftype(tree . '/.git')) ? tree . '/.git' : dir elseif rev =~# '^\.git/' let f = strpart(rev, 5) - let fdir = dir . '/' - let cdir = FugitiveCommonDir(dir) . '/' + let fdir = simplify(FugitiveActualDir(dir) . '/') + let cdir = simplify(FugitiveCommonDir(dir) . '/') if f =~# '^\.\./\.\.\%(/\|$\)' let f = simplify(len(tree) ? tree . f[2:-1] : fdir . f) elseif f =~# '^\.\.\%(/\|$\)' @@ -1723,7 +1723,7 @@ function! fugitive#Find(object, ...) abort elseif rev =~# '^:[0-3]:' let f = urlprefix . rev[1] . '/' . rev[3:-1] elseif rev ==# ':' - let fdir = dir . '/' + let fdir = simplify(FugitiveActualDir(dir) . '/') let f = fdir . 'index' if len($GIT_INDEX_FILE) let index_dir = substitute(s:GitIndexFileEnv(), '[^/]\+$', '', '')