diff mbox

Gstatus: add "cvs" command

Message ID 1385595992-27268-1-git-send-email-trevor.woerner@linaro.org
State New
Headers show

Commit Message

Trevor Woerner Nov. 27, 2013, 11:46 p.m. UTC
Add a "cvs" (how ironic!) in :Gstatus to allow a user to create a commit with
a sign-off. Sign-offs are required in many open-source projects.

Signed-off-by: Trevor Woerner <trevor.woerner@linaro.org>
---
 plugin/fugitive.vim | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
index 51e52d8..2811eb4 100644
--- a/plugin/fugitive.vim
+++ b/plugin/fugitive.vim
@@ -2104,6 +2104,7 @@  function! s:BufReadIndex()
     nnoremap <buffer> <silent> cc :<C-U>Gcommit<CR>
     nnoremap <buffer> <silent> cva :<C-U>Gcommit --amend --verbose<CR>
     nnoremap <buffer> <silent> cvc :<C-U>Gcommit --verbose<CR>
+    nnoremap <buffer> <silent> cvs :<C-U>Gcommit --verbose --signoff<CR>
     nnoremap <buffer> <silent> D :<C-U>execute <SID>StageDiff('Gvdiff')<CR>
     nnoremap <buffer> <silent> dd :<C-U>execute <SID>StageDiff('Gvdiff')<CR>
     nnoremap <buffer> <silent> dh :<C-U>execute <SID>StageDiff('Gsdiff')<CR>