From c7e3df5283c3de2e89e38714390d32f08feec800 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 10 Aug 2019 16:18:25 -0400 Subject: [PATCH] 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. --- autoload/fugitive.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 8d604b7..ab5e89e 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -5218,6 +5218,9 @@ function! fugitive#MapJumps(...) abort nnoremap cw :Gcommit --amend --only nnoremap cva :Gcommit -v --amend nnoremap cvc :Gcommit -v + nnoremap cRa :Gcommit --reset-author --amend + nnoremap cRe :Gcommit --reset-author --amend --no-edit + nnoremap cRw :Gcommit --reset-author --amend --only nnoremap cf :Gcommit --fixup==SquashArgument() nnoremap cF :Grebase --autosquash=RebaseArgument()Gcommit --fixup==SquashArgument() nnoremap cs :Gcommit --squash==SquashArgument() @@ -5229,7 +5232,6 @@ function! fugitive#MapJumps(...) abort nnoremap cr :Grevert nnoremap crc :Grevert =SquashArgument() nnoremap crn :Grevert --no-commit =SquashArgument() - nnoremap cR :Grevert =SquashArgument() nnoremap cr? :help fugitive_cr nnoremap cm :Gmerge