zettel.thermokar.st

Updating jj trunk()

I ran into an issue with a repo where I changed the default branch name (colocated git repo) from deploy to main. After doing that running jj log produced an ever-increasing list of revisions, invoking my $PAGER. After taking a closer look I realized it was because all of those revisions were listed as “mutable” - which was confusing to me because they had all been pushed upstream.

Turns out this is because the trunk() needed to be manually updated:

https://docs.jj-vcs.dev/latest/revsets/#built-in-aliases

I just threw a local jj config into the repo and updated to point to the new remote bookmark. I guess alternatively I could’ve removed the repo and recloned.


Tags: jj, til

Created: 2026-01-05T18:25:29Z · Updated: 2026-01-05T18:25:29Z