-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Is your feature request related to a problem? Please describe.
Sometimes I accidentally rebase a bookmark which I have already pushed to a remote or I have concurrent local and remote modifications. Then to cleanup as a first step I want to reset the bookmark to where it is on the remote and then clean up the repo from there.
Describe the solution you'd like
Have a "reset" option in the bookmarks menu which offers to do "jj move my-bookmark --to my-bookmark@my-remote" for bookmarks for which it makes sense.
Describe alternatives you've considered
Currently I can do one of two things:
- Change the revset to find "my-bookmark@origin" then do "bm" to move the bookmark back there.
- I figure out the above command and execute it manually.
- Ah, I think forgeting and then tracking a bookmark again is also a solution.
Why current features fail to cover this request
I was trying to figure out a local keybinding to automatically do the jj move. However for that I need to figure the name of the bookmark and the remote from the change_id. But I think the bookmarks submenu already has the complete information.
Additional context
Just an idea, I have no problem with this not getting integrate or being low priority. However my impression is, that this would only be a few lines of code.