Jujutsu: a new, Git-compatible version control system
Jujutsu: a new, Git-compatible version control system
Posted Jan 19, 2024 22:48 UTC (Fri) by arxanas (guest, #169225)In reply to: Jujutsu: a new, Git-compatible version control system by josh
Parent article: Jujutsu: a new, Git-compatible version control system
The stashing explanation could certainly be improved. Regarding stashing itself, there's simply no further deliberate operations you need to do to save the work, as the working-copy commit is the stash. You would just switch to another commit as normal — which is the same workflow as for non-stashed work. My guess is that's the mindset under which "not needed" was written there.
When you want to return to your stashed work, you can do so by inspecting the log to find its ID and then switch to that. You would have to deliberately throw away your work with jj abandon if you didn't want it anymore. (This aligns with research on how novices use Git: they actually expect their working-copy changes to "stay" on the currently-checked-out branch rather than "coming with them" when they switch commits.)
We could update the table entry to jj new @- (check out the parent commit, as you ascertained), if you think that would be helpful?
