3 ms·
I wish git would deprecate stash and replace it with something like this, that doesn't have any magic and just uses the existing branch system. It would genera
by mmahemoff 10y ago
I wish git would deprecate stash and replace it with something like this, that doesn't have any magic and just uses the existing branch system.
It would generate a new temp branch every time using a counter system, e.g. "stash1" "stash2", so all the temp branches effectively form a stack. The stash popping behaviour can still be supported this way (popping would cherry-pick and delete the highest numbered branch).
It would be easy enough to script as a side project too.
- dahart 10y agoYeah, exactly. I don't understand why stash wasn't done this way. They didn't have to circumvent the reflog, it was a choice, and one that bites a lot of people.