Skip to content

Commit 395d947

Browse files
committed
Force --no-edit on squash maps
References #1378
1 parent 0a77016 commit 395d947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/fugitive.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5609,8 +5609,8 @@ function! fugitive#MapJumps(...) abort
56095609
nnoremap <buffer> <silent> cRw :<C-U>Gcommit --reset-author --amend --only<CR>
56105610
nnoremap <buffer> cf :<C-U>Gcommit --fixup=<C-R>=<SID>SquashArgument()<CR>
56115611
nnoremap <buffer> cF :<C-U><Bar>Grebase --autosquash<C-R>=<SID>RebaseArgument()<CR><Home>Gcommit --fixup=<C-R>=<SID>SquashArgument()<CR>
5612-
nnoremap <buffer> cs :<C-U>Gcommit --squash=<C-R>=<SID>SquashArgument()<CR>
5613-
nnoremap <buffer> cS :<C-U><Bar>Grebase --autosquash<C-R>=<SID>RebaseArgument()<CR><Home>Gcommit --squash=<C-R>=<SID>SquashArgument()<CR>
5612+
nnoremap <buffer> cs :<C-U>Gcommit --no-edit --squash=<C-R>=<SID>SquashArgument()<CR>
5613+
nnoremap <buffer> cS :<C-U><Bar>Grebase --autosquash<C-R>=<SID>RebaseArgument()<CR><Home>Gcommit --no-edit --squash=<C-R>=<SID>SquashArgument()<CR>
56145614
nnoremap <buffer> cA :<C-U>Gcommit --edit --squash=<C-R>=<SID>SquashArgument()<CR>
56155615
nnoremap <buffer> <silent> c? :<C-U>help fugitive_c<CR>
56165616

0 commit comments

Comments
 (0)