Warn/require confirmation on bookmarking empty changes? #5363
sourcefrog
started this conversation in
General
Replies: 2 comments 1 reply
-
|
Doesn't I don't think |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I filed #5374 for this and I am working on a fix. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In getting to know jj, when I am working on a feature branch that I want to push to github, I've fairly often run a flow like
The trap of course is that the bookmark is set to the new empty revision following the thing that I committed. I suppose pushing the empty rev to a feature branch on github is not too harmful but it does seem a bit messy.
The right answer I guess is that I should either
bookmark move -r@-jj descthen bookmark it but then don't forget tojj newI see there is a good bit of existing discussion about various types of auto-moving bookmarks, which would perhaps be a more fundamental answer for this kind of workflow:
--advance-branchesflag forjj commit#2338As a more concrete and tactical (perhaps excessively tactical) fix I wonder if the UI should by default prevent moving a bookmark to an empty change, the same way it by default prevents you pushing new bookmarks and moving bookmarks backwards.
That is,
jj new; jj bookmark set bbbwould fail unless you said--allow-empty.Alternatively, rather than failing it could say
Beta Was this translation helpful? Give feedback.
All reactions