Re: Usability of git stash
- From
David Kastrup <dak@gnu.org>
- Date
- Oct 16, 2008, 11:24 UTC
- Message-ID
- <86vdvsg4up.fsf@lola.quinscape.zz>
- In-Reply-To
- <nKimSsYZj6xfGNCQS3i5cRwnWQfbHrtUrwdGB2zGWVfMOcfZMwJDKg@cipher.nrlssc.navy.mil>
Brandon Casey <casey@nrlssc.navy.mil> writes:
Show 7 quoted lines
> Anders Melchiorsen wrote: > >> When trying to recover from that scenario, I do "git stash apply" as >> recommended by the "git stash" output. Now I still lost my index >> state, all changes are unstaged. > > See the documentation, apply has a '--index' option.
Still, the shoot-yourself-in-the-foot potential is quite larger than appropriate for what is mostly workflow porcelaine. It is even larger than appropriate for plumbing IMHO.
I mean, even misspellings like git stash lisp
cause action that is not easily reversible, and the given help output is misleading with regard to index state.
-- David Kastrup