Provide FugitiveGitPath()

This commit is contained in:
Tim Pope
2019-08-19 08:37:22 -04:00
parent 2b6199594a
commit f29298880f
2 changed files with 9 additions and 5 deletions

View File

@@ -222,6 +222,10 @@ function! FugitiveVimPath(path) abort
endif
endfunction
function! FugitiveGitPath(path) abort
return s:Slash(a:path)
endfunction
function! s:Slash(path) abort
if exists('+shellslash')
return tr(a:path, '\', '/')