From 9f30e4d904ef786cf7385523e80d5aea0600d9a4 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 22 May 2022 17:33:53 -0400 Subject: [PATCH] Experimentally allow passing Git dir to fugitive#Command() References: https://github.com/tpope/vim-fugitive/issues/1981 --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 0b2d62b..33d931d 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3633,9 +3633,9 @@ for s:colortype in ['advice', 'branch', 'diff', 'grep', 'interactive', 'pager', call extend(s:disable_colors, ['-c', 'color.' . s:colortype . '=false']) endfor 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() - let dir = s:Dir() + let dir = call('s:Dir', a:000) if len(dir) exe s:DirCheck(dir) endif