-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: add
--untrack
option to bookmark forget
When untracking a remote bookmark, I usually also want to forget the local bookmark associated with it, and there is no way to do this in a single command currently. Instead, it's necessary to either untrack the remote bookmark first and then delete the local bookmark, or forget the bookmark first and then run `jj git fetch` to correct the remote bookmark which is now missing. Instead of adding `--untrack` to `jj bookmark forget`, we could add a `--delete-local` option to `jj bookmark untrack`. This might be more unintuitive in cases where there are multiple tracked remote bookmarks though, since a user might forget to stop tracking one remote bookmark, and then the deleted local bookmark might accidentally be pushed to that remote. Therefore, it seems safer to add the flag here, since it's clear that it untracks all of the remote bookmarks.
- Loading branch information
Showing
5 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters