mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-04 01:13:51 +08:00
Provide FugitiveGitPath()
This commit is contained in:
1 parent
2b6199594a
commit
f29298880f
2 files changed
+9
-5
No files matched your search
@@ -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, '\', '/')
|
||||
|
||||
Reference in new issue
Block a user