Add better name for function as alias

This commit is contained in:
Tim Pope 2018-07-29 21:10:45 -04:00
parent 023ab8e4a6
commit bf796562b6

View File

@ -95,6 +95,10 @@ function! FugitiveGenerate(...) abort
return fugitive#repo(FugitiveGitDir(a:0 > 1 ? a:2 : -1)).translate(a:0 ? a:1 : '', 1)
endfunction
function! FugitiveRoute(...) abort
return call('FugitiveGenerate', a:000)
endfunction
function! FugitiveParse(...) abort
let path = s:shellslash(a:0 ? a:1 : @%)
let vals = matchlist(path, '\c^fugitive:\%(//\)\=\(.\{-\}\)\%(//\|::\)\(\x\{40\}\|[0-3]\)\(/.*\)\=$')