Provide fugitive#repo()

This commit is contained in:
Tim Pope
2011-10-04 20:25:32 -04:00
parent 98b7334209
commit 37295383ff

View File

@@ -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