I'm configuring the Jujutsu VCS immutable_heads revset-alias. What is the revset alias…
- User
I'm configuring the Jujutsu VCS immutable_heads revset-alias. What is the revset alias that will mark all commits pushed to remotes immutable, except for commits that are only on remote 'sync'?
- Assistant
Add an
immutable_headsrev-set that takes “everything that is on any remote” and subtracts “anything whose only remote copy is the one calledsync”.
The simplest way to express that in Jujutsu’s rev-set language is:[revset-alias] immutable_heads = remote_heads() - remote_heads("sync")(If you prefer the boolean-and-not form, the same thing can be written
remote_heads() & !remote_heads("sync").)Drop this into your
~/.jj/config(or the repository-localjj.toml).
After that, every commit that has been pushed to at least one remote other thansyncbecomes immutable, while commits that live on the remote stay mutable so you can continue to amend, rebase, or fold them as you wish.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.