Re:Gitless: a version control system
by mmahemoff on Sunday October 02, 2016 @03:34PM
(#12623847)
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.
Re:Gitless: a version control system
by dahart on Sunday October 02, 2016 @05:49PM
(#12624446)
Yeah, 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.
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.