From bf796562b687cce024087983fe4ffe0c2bfe2f7a Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 29 Jul 2018 21:10:45 -0400 Subject: [PATCH] Add better name for function as alias --- plugin/fugitive.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 24dd060..b0e1f7e 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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]\)\(/.*\)\=$')