mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-07 12:44:39 +08:00
Provide fugitive#repo()
This commit is contained in:
1 parent
98b7334209
commit
37295383ff
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user