News for hackers. Stuff that matters.
Re:Defeating Git Rigour Fatigue with Jujutsu by nextaccountic on Sunday May 24, 2026 @08:03PM (#48262263)
> Latter commits overwrite work that was done in earlier commits and the story breaks.

> Some people prefer this, as it helps git bisect work better. Debuggability versus reviewer convenience is the tradeoff, I guess.

Ideally we would have a VCS that made ergonomic to store both history-as-it-happened for some purposes, and the cleaned up, squashed and rebased history for other purposes, ensuring they match

Re:Defeating Git Rigour Fatigue with Jujutsu by bschwindHN on Sunday May 24, 2026 @08:44PM (#48262459)
Just squash all the PR commits into one when it gets merged to main or whatever your main branch is.

You can revisit the original PR to see the individual commits if you really want.

Re:Defeating Git Rigour Fatigue with Jujutsu by paradox460 on Sunday May 24, 2026 @09:38PM (#48262695)
Jj could do that; it stores an evolog of each change, but currently that's kept local
Re:Defeating Git Rigour Fatigue with Jujutsu by gmueckl on Sunday May 24, 2026 @11:44PM (#48263233)
I think that version control has reached a point where the next major evolutionary steps will be based on making history totally shared and immutable with history edits themselves being non-destructive versioned operations that can be browsed as higher order history.
Re:Defeating Git Rigour Fatigue with Jujutsu by riwsky on Monday May 25, 2026 @11:34AM (#48268071)
That’s, uh, exactly how jj works!
Re:Defeating Git Rigour Fatigue with Jujutsu by gmueckl on Monday May 25, 2026 @11:16PM (#48274576)
I never absorbed that fact until now. Now, if it supported huge repositories with large files and binary files well, it could actually become a superstar.
Re:Defeating Git Rigour Fatigue with Jujutsu by steveklabnik on Tuesday May 26, 2026 @10:16AM (#48280192)
> if it supported huge repositories with large files and binary files well,

In the open source context, it's limited by git here. But you can use jj with Google's monorepo, and so it itself is able to handle at least huge repositories (I don't know how big the largest files and binary files are in it, but I'm assuming that it has some of those too) well. That of course doesn't help you directly if you're not at Google, but the pathway is there.

Re:Defeating Git Rigour Fatigue with Jujutsu by Izkata on Monday May 25, 2026 @04:31AM (#48264674)
Force --no-ff merges in git. That's pretty much what you want.