Idea: Revset, only valid in jj bookmark move ---to '...'
, pointing to the bookmark being moved
#5130
Replies: 2 comments 2 replies
-
Some of the ideas in #4980 might help express this kind of operation. That said, it wouldn't be uncommon to move bookmarks forward to certain points. If we can come up with a general query applicable to most scenarios, maybe we can add |
Beta Was this translation helpful? Give feedback.
-
Is this a workflow you actually perform a lot? What's the use-case? How do you accomplish it right now? I wonder if it might be best to keep the one-bookmark form and have users build on top of it somehow (either via existing templating + shell scripting mechanisms, or one of #3219, #3575, #3814), rather than expand the interfaces of the commands and DSLs. For comparison: git-branchless offers a specific |
Beta Was this translation helpful? Give feedback.
-
You can move many bookmarks at once with
jj bookmark move
. But you can't move them to different target revisions.Let's say the
--to
revset is evaluated separately for each bookmark under consideration, and it had a revset available calledbookmark_being_moved()
(or whatever).Then you could have a workflow like
Then you would have
automatically move up feature/b from
qny
toqol
.Beta Was this translation helpful? Give feedback.
All reactions