From a44310448902cb3194b1a94d30e38538aa07d957 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 2 Feb 2022 05:49:09 -0500 Subject: [PATCH] Add czs as :Git stash push --staged Resolves: https://github.com/tpope/vim-fugitive/issues/1941 --- autoload/fugitive.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index f7f82e7..e99107a 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -7593,9 +7593,10 @@ function! fugitive#MapJumps(...) abort call s:Map('n', 'czA', ':Git stash apply --quiet stash@{=v:count}') call s:Map('n', 'czp', ':Git stash pop --quiet --index stash@{=v:count}') call s:Map('n', 'czP', ':Git stash pop --quiet stash@{=v:count}') + call s:Map('n', 'czs', ':Git stash push --staged') call s:Map('n', 'czv', ':exe "Gedit" fugitive#RevParse("stash@{" . v:count . "}")', '') - call s:Map('n', 'czw', ':Git stash --keep-index=v:count > 1 ? " --all" : v:count ? " --include-untracked" : ""') - call s:Map('n', 'czz', ':Git stash =v:count > 1 ? " --all" : v:count ? " --include-untracked" : ""') + call s:Map('n', 'czw', ':Git stash push --keep-index=v:count > 1 ? " --all" : v:count ? " --include-untracked" : ""') + call s:Map('n', 'czz', ':Git stash push =v:count > 1 ? " --all" : v:count ? " --include-untracked" : ""') call s:Map('n', 'cz?', ':help fugitive_cz', '') call s:Map('n', 'co', ':Git checkout')