motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit bd70719f54bc0c812f8e9518e1e93bde5755bf33 (tree)
parent 0f08b0cbbb618b6bbd05f586fef206e9a45686eb
Author: Tim Pope <code@tpope.net>
Date:   Sat,  3 Aug 2019 21:35:46 -0400

Provide :Grevert and :Gmerge mappings

Diffstat:
Mautoload/fugitive.vim | 13+++++++++++--
Mdoc/fugitive.txt | 13+++++++++++--
2 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -5115,10 +5115,19 @@ function! fugitive#MapJumps(...) abort nnoremap <buffer> cs :<C-U>Gcommit --squash=<C-R>=<SID>SquashArgument()<CR> nnoremap <buffer> cS :<C-U><Bar>Grebase --autosquash<C-R>=<SID>RebaseArgument()<CR><Home>Gcommit --squash=<C-R>=<SID>SquashArgument()<CR> nnoremap <buffer> cA :<C-U>Gcommit --edit --squash=<C-R>=<SID>SquashArgument()<CR> - nnoremap <buffer> <silent> cr :<C-U>Grevert <C-R>=<SID>SquashArgument()<CR><CR> - nnoremap <buffer> <silent> cR :<C-U>Grevert <C-R>=<SID>SquashArgument()<CR><CR> nnoremap <buffer> <silent> c? :<C-U>help fugitive_c<CR> + nnoremap <buffer> cr<Space> :Grevert<Space> + nnoremap <buffer> cr<CR> :Grevert<CR> + nnoremap <buffer> <silent> crc :<C-U>Grevert <C-R>=<SID>SquashArgument()<CR><CR> + nnoremap <buffer> <silent> crn :<C-U>Grevert --no-commit <C-R>=<SID>SquashArgument()<CR><CR> + nnoremap <buffer> <silent> cR :<C-U>Grevert <C-R>=<SID>SquashArgument()<CR><CR> + nnoremap <buffer> <silent> cr? :help fugitive_cr<CR> + + nnoremap <buffer> cm<Space> :Gmerge<Space> + nnoremap <buffer> cm<CR> :Gmerge<CR> + nnoremap <buffer> <silent> cm? :help fugitive_cm<CR> + nnoremap <buffer> cz<Space> :G stash<Space> nnoremap <buffer> cz<CR> :G stash<CR> nnoremap <buffer> <silent> cza :<C-U>exe <SID>EchoExec(['stash', 'apply', '--quiet', '--index', 'stash@{' . v:count . '}'])<CR> diff --git a/doc/fugitive.txt b/doc/fugitive.txt @@ -426,10 +426,19 @@ cS Create a `squash!` commit for the commit under the cA Create a `squash!` commit for the commit under the cursor and edit the message. -cr Revert the commit under the cursor. - c<Space> Populate command line with ":Gcommit ". + *fugitive_cr* +crc Revert the commit under the cursor. + +crn Revert the commit under the cursor in the index and + work tree, but do not actually commit the changes. + +cr<Space> Populate command line with ":Grevert ". + + *fugitive_cm* +cm<Space> Populate command line with ":Gmerge ". + c? Show this help. *fugitive_cb*