diff --git a/doc/fugitive.txt b/doc/fugitive.txt index c3a9ffb..d42f773 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -41,10 +41,11 @@ that are part of Git repositories). - |:Git| add - |:Git| reset (staged files) a Show alternative format - cA |:Gcommit| --amend --reuse-message=HEAD ca |:Gcommit| --amend cc |:Gcommit| - cva |:Gcommit| --amend --verbose + ce |:Gcommit| --amend --no-edit + cw |:Gcommit| --amend --only + cva |:Gcommit| --verbose --amend cvc |:Gcommit| --verbose D |:Gdiff| ds |:Gsdiff| diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 6a52553..a25c7b1 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2612,12 +2612,14 @@ function! s:BufReadIndex() abort xnoremap - :silent execute StageToggle(line("'<"),line("'>")) nnoremap a :let b:fugitive_display_format += 1exe BufReadIndex() nnoremap i :let b:fugitive_display_format -= 1exe BufReadIndex() - nnoremap C :Gcommit + nnoremap C :echoerr 'Use cc instead' nnoremap cA :Gcommit --amend --reuse-message=HEAD nnoremap ca :Gcommit --amend nnoremap cc :Gcommit - nnoremap cva :Gcommit --amend --verbose - nnoremap cvc :Gcommit --verbose + nnoremap ce :Gcommit --amend --no-edit + nnoremap cw :Gcommit --amend --only + nnoremap cva :Gcommit -v --amend + nnoremap cvc :Gcommit -v nnoremap D :execute StageDiff('Gdiff') nnoremap dd :execute StageDiff('Gdiff') nnoremap dh :execute StageDiff('Gsdiff')