]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/git-stash.txt
stash: introduce 'git stash store'
authorRamkumar Ramachandra <artagnon@gmail.com>
Sat, 15 Jun 2013 13:13:25 +0000 (18:43 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Jun 2013 18:43:13 +0000 (11:43 -0700)
commitbd514cada4bb1a396a58d408c3ec08526a8be742
tree2d10955da70b92bfa297a853c3f0a62cbacf7577
parent0719f300870cb573dcb526c7ab0cdffc5ee54324
stash: introduce 'git stash store'

save_stash() contains the logic for doing two potentially independent
operations; the first is preparing the stash merge commit, and the
second is updating the stash ref/ reflog accordingly.  While the first
operation is abstracted out into a create_stash() for callers to access
via 'git stash create', the second one is not.  Fix this by factoring
out the logic for storing the stash into a store_stash() that callers
can access via 'git stash store'.

Like create, store is not intended for end user interactive use, but for
callers in other scripts.  We can simplify the logic in the
rebase.autostash feature using this new subcommand.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-stash.txt
git-stash.sh
t/t3903-stash.sh