Allow :Grevert --abort/continue/quit

This commit is contained in:
Tim Pope 2019-08-04 00:37:11 -04:00
parent 9d77fd566c
commit 0484c03c6b

View File

@ -3312,7 +3312,7 @@ endfunction
function! s:RevertSubcommand(line1, line2, range, bang, mods, args) abort function! s:RevertSubcommand(line1, line2, range, bang, mods, args) abort
let dir = s:Dir() let dir = s:Dir()
let no_commit = s:HasOpt(a:args, '-n', '--no-commit', '--no-edit') let no_commit = s:HasOpt(a:args, '-n', '--no-commit', '--no-edit', '--abort', '--continue', '--quit')
let cmd = s:UserCommand(dir) . ' revert ' . (no_commit ? '' : '-n ') . s:shellesc(a:args) let cmd = s:UserCommand(dir) . ' revert ' . (no_commit ? '' : '-n ') . s:shellesc(a:args)
let [out, exec_error] = s:SystemError(cmd) let [out, exec_error] = s:SystemError(cmd)
call fugitive#ReloadStatus(-1, 1) call fugitive#ReloadStatus(-1, 1)