Re: [PATCH] Showing stash state in bash prompt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thomas Rast <trast@xxxxxxxxxxxxxxx> writes:
> But IMHO it would not be a good idea to teach people stash/pop anyway:
> 'stash drop' is irreversible, because the stash is itself implemented
> through the reflog and thus not guarded by one.

I don't understand why you say this -- sure "drop" is dangerous, but
that's exactly why you should use "pop" instead, because it makes sure
the changes are _somewhere_.  I found with the old (pre-"pop") stash,
I'd often end up in a situation where I'd lose track of whether I had
done a stash apply or not, and the risk of inadvertently doing a drop
_without_ a corresponding apply was very real.

stash/pop is safer, more convenient, and I think it better matches how
people actually work.

-Miles

-- 
What the fuck do white people have to be blue about!?  Banana Republic ran
out of Khakis?  The Espresso Machine is jammed?  Hootie and The Blowfish
are breaking up??!  Shit, white people oughtta understand, their job is to
GIVE people the blues, not to get them!  -- George Carlin
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]