Provide some commit --reset-author maps
Supporting flags with additional maps is a pretty limited solution, as there's no way to combine them (that is, we'd need to map both cRva and cvRa to get both verbose and reset-author, and that's as silly as it is hard to type in under a second). I think some kind of getchar() dispatcher is going to be the long term solution.
This commit is contained in:
parent
bc3d36e559
commit
c7e3df5283
@ -5218,6 +5218,9 @@ function! fugitive#MapJumps(...) abort
|
||||
nnoremap <buffer> <silent> cw :<C-U>Gcommit --amend --only<CR>
|
||||
nnoremap <buffer> <silent> cva :<C-U>Gcommit -v --amend<CR>
|
||||
nnoremap <buffer> <silent> cvc :<C-U>Gcommit -v<CR>
|
||||
nnoremap <buffer> <silent> cRa :<C-U>Gcommit --reset-author --amend<CR>
|
||||
nnoremap <buffer> <silent> cRe :<C-U>Gcommit --reset-author --amend --no-edit<CR>
|
||||
nnoremap <buffer> <silent> cRw :<C-U>Gcommit --reset-author --amend --only<CR>
|
||||
nnoremap <buffer> cf :<C-U>Gcommit --fixup=<C-R>=<SID>SquashArgument()<CR>
|
||||
nnoremap <buffer> cF :<C-U><Bar>Grebase --autosquash<C-R>=<SID>RebaseArgument()<CR><Home>Gcommit --fixup=<C-R>=<SID>SquashArgument()<CR>
|
||||
nnoremap <buffer> cs :<C-U>Gcommit --squash=<C-R>=<SID>SquashArgument()<CR>
|
||||
@ -5229,7 +5232,6 @@ function! fugitive#MapJumps(...) abort
|
||||
nnoremap <buffer> cr<CR> :Grevert<CR>
|
||||
nnoremap <buffer> <silent> crc :<C-U>Grevert <C-R>=<SID>SquashArgument()<CR><CR>
|
||||
nnoremap <buffer> <silent> crn :<C-U>Grevert --no-commit <C-R>=<SID>SquashArgument()<CR><CR>
|
||||
nnoremap <buffer> <silent> cR :<C-U>Grevert <C-R>=<SID>SquashArgument()<CR><CR>
|
||||
nnoremap <buffer> <silent> cr? :help fugitive_cr<CR>
|
||||
|
||||
nnoremap <buffer> cm<Space> :Gmerge<Space>
|
||||
|
Loading…
x
Reference in New Issue
Block a user