From 821f11176fbc89016b9b7a8214ae2adf7f87a1f8 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 25 Aug 2011 15:45:00 -0400 Subject: [PATCH] Add ca and cA commit maps to :Gstatus --- doc/fugitive.txt | 2 ++ plugin/fugitive.vim | 2 ++ 2 files changed, 4 insertions(+) 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')