From 37295383ff5d07a40b123e535c721060e4a2251d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 4 Oct 2011 20:25:32 -0400 Subject: [PATCH] Provide fugitive#repo() --- plugin/fugitive.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 735ee81..be4f4c9 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -181,6 +181,10 @@ function! s:repo(...) abort call s:throw('not a git repository: '.expand('%:p')) endfunction +function! fugitive#repo(...) + return call('s:repo', a:000) +endfunction + function! s:repo_dir(...) dict abort return join([self.git_dir]+a:000,'/') endfunction