Replies: 2 comments 2 replies
-
An update: after I did a So, I now think I misunderstood the concept and this is working as expected. This is merely a documentation bug (or I missed some documentation). |
Beta Was this translation helpful? Give feedback.
-
What you did is correct. I'm glad you figured that out :) Good point about documenting it. Fixed in #536 (as you know).
I suspect that's a bug in the automatic export to Git that happens when you run jj and Git in a shared working copy (i.e. when Sorry to not have a better answer. I'll try to prioritize fixing that bug we have when exporting refs to Git because it's one of the more common and annoying ones. @chooglen, let me know if you wanted to fix that bug since I know we talked about it before.
When you ran the rebase command, it should have hidden the commit that the remote pointed to and it shouldn't have become visible again, so I do think there was a bug. PS. You can add |
Beta Was this translation helpful? Give feedback.
-
Here is my situation:
Here, I just added commit
9b722
, and I now want to rebase the (non-trivial) merge commit8baf
on top of it.I tried
jj rebase -s 8baf -d @ -d dd5d -d 13ff
. This worked well, but resulted in the merge commit becoming "divergent", which I'm not sure how to solve:My questions are:
What is the best way to do the original rebase I tried?
As an aside, the fact that rebase with multiple
-d
mostly works is really neat, but not documented anywhere.Is the divergent condition expected in this situation, or is it a bug? I'm not sure, but I find it unexpected.
Another aside
For simplicity's sake, I did not include two commits I had in between the merge commit and the tip of `focus-fixes` branch. After the rebase, these two commits also were divergent, but the tip of the branch wasn't for some reason, looking like this:How do I recover from the divergent condition?
None of this is urgent,
jj
andgit
provide me with plenty of tools to fix this manually if I want to.P.S. Here is the repo in the divergent state: lf_repo2.tgz. It's a slightly newer version of the repo I uploaded in the other discussion.
Beta Was this translation helpful? Give feedback.
All reactions