News for hackers. Stuff that matters.
Re:Jujutsu for Everyone by hdjrudni on Sunday August 31, 2025 @06:58PM (#45087841)
I forget where I read it (maybe from Martin), but one reason I like to `jj new` before I start any work is just because it makes it easy to revert or abandon if I don't end up liking it. And also easy to diff. `jj new` is pretty much 'free' anyway, every time you make an edit you're creating new commits (not changes!) anyway.
Re:Jujutsu for Everyone by BeetleB on Sunday August 31, 2025 @09:47PM (#45088700)
Oh I'm good with jj new for any new thing I'm working on. But I was wondering why one would use jj new -A to fix a commit in the past vs jj edit,
Re:Jujutsu for Everyone by kps on Sunday August 31, 2025 @10:10PM (#45088815)
Mostly to keep the new changes isolated from the original commit until they're ready, I think. The only time I use `jj edit` is to resume a leaf I left in the middle of something (where I might have used `git stash pop` but without needing to stash).