News for hackers. Stuff that matters.
Re:Jujutsu (jj), a Git compatible VCS by stouset on Sunday October 20, 2024 @05:24PM (#41898597)
I have accidentally pushed wip commits more times than I care to remember.

Wouldn’t it be nice if there was a tool that didn’t need you to internalize all these workarounds?

Re:Jujutsu (jj), a Git compatible VCS by edflsafoiewq on Sunday October 20, 2024 @05:50PM (#41898774)
I don't believe I've ever pushed a WIP commit. Count that to the benefits of stashing I guess.

I don't consider any of this a problem, but why don't you tell me how your preferred tool does it.

Re:Jujutsu (jj), a Git compatible VCS by stouset on Sunday October 20, 2024 @07:13PM (#41899280)
So when I say there a problems with stashing, you suggest wip commits. When I point out problems with wip commits, we go back to stashing?

jj needs neither because everything in your working copy is already part of a commit. You can’t accidentally push unfinished changes because jj will complain if it hasn’t been described (given a commit message). If you need to move changes between commits you don’t need to stash because you can easily move the contents of a commit around.

Re:Jujutsu (jj), a Git compatible VCS by edflsafoiewq on Sunday October 20, 2024 @07:49PM (#41899492)
Stashing vs WIP commits have pros and cons. I've never hit any of these problems you're pointing out, so I don't have any particular strong opinion about which one you should use.

I can see that being nice I guess.

If jj's stashes are just regular commits, don't you have the problem where you accidentally push a stash just like you push a WIP commit?

Re:Jujutsu (jj), a Git compatible VCS by stouset on Sunday October 20, 2024 @07:53PM (#41899506)
It’s not like these are git’s only pain points. Git is practically the poster child for software that’s difficult and confusing to use.
Re:Jujutsu (jj), a Git compatible VCS by edflsafoiewq on Sunday October 20, 2024 @08:03PM (#41899547)
I don't think so. Like the OP, my everyday git usage is pretty straightforward. So "maybe this thing you do every once in a while could be a little nicer" doesn't feel very compelling.
Re:Jujutsu (jj), a Git compatible VCS by steveklabnik on Monday October 21, 2024 @12:24PM (#41905747)
> don't you have the problem where you accidentally push a stash just like you push a WIP commit?

Because jj doesn’t require commits to be on a branch, and the equivalent feature (bookmarks) don’t automatically advance, if you created a new commit to stash some stuff, the name wouldn’t move to it, and so when you push nothing would happen.