]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/git-stash.txt
stash: implement '--staged' option for 'push' and 'save'
authorSergey Organov <sorganov@gmail.com>
Mon, 18 Oct 2021 16:09:06 +0000 (19:09 +0300)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Oct 2021 20:09:21 +0000 (13:09 -0700)
commit41a28eb6c124bd06ca4a4fea9a1da3178a09467b
treedacbe04e52142eaa2214c6ed926cf3385d04495b
parentf443b226ca681d87a3a31e245a70e6bc2769123c
stash: implement '--staged' option for 'push' and 'save'

Stash only the changes that are staged.

This mode allows to easily stash-out for later reuse some changes
unrelated to the current work in progress.

Unlike 'stash push --patch', --staged supports use of any tool to
select the changes to stash-out, including, but not limited to 'git
add --interactive'.

Signed-off-by: Sergey Organov <sorganov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-stash.txt
builtin/stash.c
t/t3903-stash.sh