jj: set immutable heads

This commit is contained in:
Daniel Lundin 2024-05-12 11:24:22 +02:00
parent 20846ca2ac
commit 58837c4f50
No known key found for this signature in database

View file

@ -13,3 +13,9 @@ la = ["log", "--ignore-working-copy", "-r", "all()"]
b = ["branch", "list"]
n = ["new", "main"]
d = ["diff"]
[revset-aliases]
# The `main.. &` bit is an optimization to scan for non-`mine()` commits only
# among commits that are not in `main`.
"immutable_heads()" = "main@origin | (main@origin.. & ~mine())"