[jj] immutable heads
change nwnyovpsozoryxrvwzvsmlpykxxoulxn
commit 64a81837b2402a4b9e49e2c572269e5c78d67882
author Alpha Chen <alpha@kejadlen.dev>
date
parent ttopmuqt
diff --git a/.config/jj/config.toml b/.config/jj/config.toml
index e23224ae..82726e95 100644
--- a/.config/jj/config.toml
+++ b/.config/jj/config.toml
@@ -61,6 +61,7 @@ diff-editor = "gitpatch"
 pager = ":builtin"
 
 [revset-aliases]
+'immutable_heads()' = 'builtin_immutable_heads() | bookmarks() ~ bookmarks(regex:"^alpha/")'
 'closest_bookmark(to)' = 'heads(::to & bookmarks())'
 'closest_pushable(to)' = 'heads(::to & mutable() & ~description(exact:"") & (~empty() | merges()))'