News for hackers. Stuff that matters.
Re:Jujutsu for Busy Devs by nchmy on Wednesday July 23, 2025 @08:59AM (#44658736)
I've been trying absorb recently and have found it rarely does anything and I just resort to squashes. Any idea what might be going on?
Re:Jujutsu for Busy Devs by Filligree on Thursday July 24, 2025 @11:34AM (#44671984)
Absorb:

- Will not rewrite an immutable commit, of course. (Though you can tell it to, and for my personal repositories I sometimes actually set immutable() = root().)

- Will not do anything to diffs if it's uncertain where they should go, either because that file wasn't edited in a previous mutable commit, or because it was edited in multiple sibling/cousin commits. The latter is likely to happen with mega-merges.

You can use --into to restrict the set of target commits, if you already know what feature branch you're updating.