-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: jj bookmark untrack
should delete the local bookmark
#5524
Comments
I think the desired command would be
|
For me, the main downside to Also, I think if you have auto-tracking turned on,
Yeah, that's a good point. It seems like there's not really any way to perfectly reverse the effect of I still think it would be nice to be able to delete the local bookmark at the same time as I untrack the remote bookmark (without causing the remote information to become out of sync). Maybe a Edit: or maybe |
I meant |
Ohh I misunderstood, I'm sorry. Yeah, that could be a good solution. |
Is your feature request related to a problem? Please describe.
Sometimes I want to work on a remote bookmark, so I run
jj bookmark track name@remote
, and then I make some changes and push them, and then I want to stop tracking the bookmark since I'm done working on it, so I runjj bookmark untrack name@remote
. I would expectuntrack
to do the opposite oftrack
(meaning it deletes the local bookmark thattrack
created), but currently it doesn't do this, so I have to runjj bookmark delete name
afterwards.Describe the solution you'd like
When a remote bookmark is untracked by
jj bookmark untrack
and it was the last tracked remote bookmark with that name (to handle the case of tracking from multiple remotes), then any local bookmark with that name should be automatically deleted (but nothing should be abandoned). To me, it seems uncommon to want to untrack a remote bookmark while keeping the local bookmark, but there could be a--keep-local
flag to keep the local bookmark if this functionality is still desired.Describe alternatives you've considered
We could continue to require the user to run two commands in this case. We could also keep the default the same, but add a
--delete-local
flag tojj bookmark untrack
instead.The text was updated successfully, but these errors were encountered: