Replies: 2 comments 14 replies
-
It's working as intended. The problem is that there's no native support for creation/deletion of tags. See #6325. |
Beta Was this translation helpful? Give feedback.
-
So, feature, it would seem. Can you help me understand why anyone would ever want this? [So far, jj has only ever surprised me in good ways (and it has done so many times), but this was a very nasty surprise, especially as the usually-reliable At least [git]
abandon-unreachable-commits = false exists, and seems to switch to (in my mind) sane behaviour. (I need to look into the meaning of the word 'imported' as used in various places in #6325, and how importing things results in them being abandoned. I guess it's a bit like |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems that removing a git tag causes jj to abandon any commits that were previously reachable from that tag, even if they are still reachable from visible heads in jj. Here's a quick demonstration:
These commits still are/should-be reachable from their visible, unabandoned commits in the jj repo, so they should not be abandoned. Abandoning them makes a complete mess of the repo, and gives the impression that data have been irretrievably lost!
However, if no commits are created on top of the tagged one, before the tag is removed, then nothing is abandoned.
Bug or feature?
Beta Was this translation helpful? Give feedback.
All reactions