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 bf796562b687cce024087983fe4ffe0c2bfe2f7a (tree)
parent 023ab8e4a6c65d9c6996880dd42168400b826ffe
Author: Tim Pope <code@tpope.net>
Date:   Sun, 29 Jul 2018 21:10:45 -0400

Add better name for function as alias

Diffstat:
Mplugin/fugitive.vim | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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]\)\(/.*\)\=$')