1 hour ago · Tech · hide · 0 comments

jj bookmark advance is a relatively new feature1 of Jujutsu that replaced the nearly ubiquitous jj tug alias that moved bookmarks to the "tip" of their respective commit DAGs. The way it works is by moving the matched bookmarks to the revset specified in revsets.bookmark-advance-to, which by default is @ -- ie, the current active commit. I find that to be unhelpful because I've often got unpushable commits in my history, so mine is a bit more involved: [revsets] bookmark-advance-to = "closest_pushable(@)" [revset-aliases] 'closest_pushable(to)' = 'heads(::to & mutable() & ~denylist() & ~description(exact:"") & (~empty() | merges()))' 'denylist()' = 'wip() | private()' 'wip()' = 'description(glob:"wip:*") | description(glob:"WIP:*")' 'private()' = "description(glob:'private:*')" Collectively, this gives me a configuration where bookmarks advance to where it is "safe" to do so, rather than to the current commit. It means that jj git push doesn't try to push a commit that is otherwise…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.