Accept a count to :Git

Now that <mods> support is widely available, I'm considering moving all
:Gsplit! variants onto :Git!, and making :0Git! suppress the split.
This commit is contained in:
Tim Pope 2019-06-05 22:43:31 -04:00
parent 41a734ef49
commit bf7f05e62b

View File

@ -1837,7 +1837,7 @@ augroup END
" Section: :Git " Section: :Git
call s:command("-bang -nargs=? -complete=customlist,fugitive#CompleteGit Git", "Git") call s:command("-bang -nargs=? -range=-1 -complete=customlist,fugitive#CompleteGit Git", "Git")
function! s:GitCommand(line1, line2, range, count, bang, mods, reg, arg, args) abort function! s:GitCommand(line1, line2, range, count, bang, mods, reg, arg, args) abort
if a:bang if a:bang