mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 04:23:46 -05:00
Experimentally allow passing Git dir to fugitive#Command()
References: https://github.com/tpope/vim-fugitive/issues/1981
This commit is contained in:
@@ -3633,9 +3633,9 @@ for s:colortype in ['advice', 'branch', 'diff', 'grep', 'interactive', 'pager',
|
|||||||
call extend(s:disable_colors, ['-c', 'color.' . s:colortype . '=false'])
|
call extend(s:disable_colors, ['-c', 'color.' . s:colortype . '=false'])
|
||||||
endfor
|
endfor
|
||||||
unlet s:colortype
|
unlet s:colortype
|
||||||
function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
|
function! fugitive#Command(line1, line2, range, bang, mods, arg, ...) abort
|
||||||
exe s:VersionCheck()
|
exe s:VersionCheck()
|
||||||
let dir = s:Dir()
|
let dir = call('s:Dir', a:000)
|
||||||
if len(dir)
|
if len(dir)
|
||||||
exe s:DirCheck(dir)
|
exe s:DirCheck(dir)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user