mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 23:33:43 -05:00
Provide fugitive#repo()
This commit is contained in:
@@ -181,6 +181,10 @@ function! s:repo(...) abort
|
|||||||
call s:throw('not a git repository: '.expand('%:p'))
|
call s:throw('not a git repository: '.expand('%:p'))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! fugitive#repo(...)
|
||||||
|
return call('s:repo', a:000)
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! s:repo_dir(...) dict abort
|
function! s:repo_dir(...) dict abort
|
||||||
return join([self.git_dir]+a:000,'/')
|
return join([self.git_dir]+a:000,'/')
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user