Open todo file on Grebase --edit-todo
This commit is contained in:
parent
ae8fed6dd3
commit
b66141e252
@ -2321,7 +2321,7 @@ let s:common_efm = ''
|
|||||||
|
|
||||||
function! s:Merge(cmd, bang, mods, args) abort
|
function! s:Merge(cmd, bang, mods, args) abort
|
||||||
let mods = substitute(a:mods, '\C<mods>', '', '') . ' '
|
let mods = substitute(a:mods, '\C<mods>', '', '') . ' '
|
||||||
if a:cmd =~# '^rebase' && ' '.a:args =~# ' -i\| --interactive\| --edit-todo'
|
if a:cmd =~# '^rebase' && ' '.a:args =~# ' -i\| --interactive'
|
||||||
return 'echoerr "git rebase --interactive not supported"'
|
return 'echoerr "git rebase --interactive not supported"'
|
||||||
endif
|
endif
|
||||||
let [mp, efm] = [&l:mp, &l:efm]
|
let [mp, efm] = [&l:mp, &l:efm]
|
||||||
@ -2383,6 +2383,8 @@ function! s:Merge(cmd, bang, mods, args) abort
|
|||||||
elseif a:cmd =~# '^rebase' && ' '.a:args =~# ' --continue' && s:HasRebaseCommitCmd()
|
elseif a:cmd =~# '^rebase' && ' '.a:args =~# ' --continue' && s:HasRebaseCommitCmd()
|
||||||
cclose
|
cclose
|
||||||
return mods . 'Gcommit --amend'
|
return mods . 'Gcommit --amend'
|
||||||
|
elseif a:cmd =~# '^rebase' && ' '.a:args =~# ' --edit-todo'
|
||||||
|
return mods . 'Gsplit ' . s:fnameescape(b:git_dir . '/rebase-merge/git-rebase-todo') . ' | setlocal bufhidden=wipe nobuflisted'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
let qflist = getqflist()
|
let qflist = getqflist()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user