Re: [PATCH] git-stash: add new 'drop' subcommand
- From
- JM Ibanez <jm@orangeandbronze.com>
- Date
- Jan 5, 2008, 09:26 UTC
- Message-ID
- <871w8woc77.fsf@adler.orangeandbronze.com>
- In-Reply-To
- <20080105035118.GB26892@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 10 quoted lines
> On Fri, Jan 04, 2008 at 07:31:00PM -0600, Brandon Casey wrote:
>
>> Thus far I haven't been a big user of git stash, but I plan to
>> use it more and I expect to use 'drop' more often than
>> 'clear'. I expect in the common case there will be a single
>
> There was some discussion of a sensible name, but I don't recall seeing
> a resolution on this: why not "clear stash@{0}" to clear one, and
> "clear" to clear all? Otherwise, I foresee "git stash clear stash@{0}"
> followed by "oops, I just deleted all of my stashes."I actually got hit by this. I didn't know that stash clear affected all stashes and lost quite a bit of work that way (I use stash to store various test database configs for a tree I work with, and so lost all of them when trying to remove one particular stash).
> I guess you get "git stash drop" as a synonym for "git stash drop
> stash@{0}" this way, but it just seems mean to users to make them
> remember which of "drop" and "clear" does what they want.I have to agree with this.
-- JM Ibanez Software Architect Orange & Bronze Software Labs, Ltd. Co. jm@orangeandbronze.com http://software.orangeandbronze.com/