diff --git a/doc/fugitive.txt b/doc/fugitive.txt index 80fe916..8b08929 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -40,6 +40,8 @@ that are part of Git repositories). - |:Git| add - |:Git| reset (staged files) C |:Gcommit| + cA |Gcommit| --amend --reuse-message=HEAD + ca |Gcommit| --amend D |:Gdiff| ds |:Gsdiff| dp |:Git!| diff (mnemonic: p for patch) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index dae8a14..ddf29bb 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1802,6 +1802,8 @@ function! s:BufReadIndex() nnoremap a :let b:fugitive_display_format += 1exe BufReadIndex() nnoremap i :let b:fugitive_display_format -= 1exe BufReadIndex() nnoremap C :Gcommit + nnoremap cA :Gcommit --amend --reuse-message=HEAD + nnoremap ca :Gcommit --amend nnoremap D :execute StageDiff('Gvdiff') nnoremap dd :execute StageDiff('Gvdiff') nnoremap dh :execute StageDiff('Gsdiff')