* Asymmetric default behavior of git stash
@ 2013-08-27 14:07 Uwe Storbeck
0 siblings, 0 replies; only message in thread
From: Uwe Storbeck @ 2013-08-27 14:07 UTC (permalink / raw)
To: git
Hi,
is there any reason why the default behavior of git stash is
asymmetric?
When I save my current state with 'git stash save' it saves the
worktree changes and the index changes (and resets both). When I
restore the state with 'git stash pop' it restores the worktree
changes, but not the state of the index. Your work preparing the
index is lost.
Although this behavior is documented it is kind of unexpected.
From a save-restore mechanism I would expect that the default
behavior would restore the state as it was before the save. So
I would expect it to either save and restore the worktree and
leave the index alone or save and restore both, the worktree
and the index.
Regards
Uwe
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-27 14:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-27 14:07 Asymmetric default behavior of git stash Uwe Storbeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.