-
Notifications
You must be signed in to change notification settings - Fork 403
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
design: what should bookmarks do in the longterm #5706
Comments
Here was my previous answer to continue the conversation (#5050 (comment)).
One long-term possibility I like would be to forbid bookmarks from pointing to hidden commits entirely, but have good support for tags pointing to hidden commits (as well as pushing/fetching tags). Perhaps a bookmark could even become a pointer to a change id, while tags would continue pointing to commit ids. This would extend the common use of tags for labeling releases. Obviously, this would require a lot more redesign and work (especially if we also introduce the third concept of topics in the meantime). I think long-term the goal should be to make it (bookmarking a hidden commit) an error, like I outlined in the Discord discussion and initial version of this patch. I am also of the opinion that a native Jujutsu has no need for tags, see this Discord message. Since most of this is unrelated to this patch, we should move the discussion to a new issue.
That wouldn't match my model, so I'd disallow relatively soon. edit: @joyously here's the Discord message:
|
I can't see the Discord message, so I'm just going to ask if you had proposed some other way than tags to label a release. I think we should look at the big picture of the
I wrote a short list in some other comment (not sure where). I didn't really consider hidden commits. I'm not sure if they are useful, but would they be considered in commands like |
Yes, my essential idea is to make bookmarks a "tag" on the "Change" which can then be used as "releases" and other things which Git tags currently are used for.
I think they should not but Martin should probably chime in. |
What I meant was if you
This makes me think of requests to be able to fetch refspecs. In regard to hidden commits, if my boss asked me for a monthly report of how many lines of code were changed, I would want to get information from the hidden ones too. |
This is primarily a design discussion around what bookmarks could or should model.
Unrelated to this PR: I'm not sure what the long-term behavior should be. As history becomes more accessible, I hope people will want to refer to hidden commits (and thus maybe label them) more and more often.
One long-term possibility I like would be to forbid bookmarks from pointing to hidden commits entirely, but have good support for tags pointing to hidden commits (as well as pushing/fetching tags). Perhaps a bookmark could even become a pointer to a change id, while tags would continue pointing to commit ids. This would extend the common use of tags for labeling releases. Obviously, this would require a lot more redesign and work (especially if we also introduce the third concept of topics in the meantime).
In the shorter term, I'd consider allowing
jj abandon
to keep bookmarks at the hidden commits instead of deleting (or sliding) them. However, I don't think this is urgent; for now people seem to refer to hidden commits quite rarely.Originally posted by @ilyagr in #5050 (comment)
The text was updated successfully, but these errors were encountered: