commit 39ab6cc5d08eadbbf868e6e2911ed517250c5b7d
parent fd7277880036c16faeeb5490ffa531a8b26d2531
Author: Anders Damsgaard <andersd@riseup.net>
Date: Sun, 3 Dec 2017 17:21:49 -0500
add silent binding enabling edit of previous commits
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/links/.vim/ftplugin/gitcommit.vim b/links/.vim/ftplugin/gitcommit.vim
@@ -6,5 +6,7 @@ augroup gitcommit_typography
setlocal list
setlocal formatoptions=alw2qt " automatically reflow paragraphs
setlocal completefunc=emoji#complete
+
+ " modify previous commit via git --amend
nnoremap <buffer> <silent> cd :<C-U>Gcommit --amend --date="$(date)"<CR>
augroup END