"No-op" merges?
#2649
Replies: 1 comment 9 replies
-
IIUC what you want,
Btw, |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Often in Git, I want to ensure my feature branch is up-to-date with the trunk, but not make any changes if it already incorporates the tip of the trunk. I generally do this with a merge (though I realize that rebase is also a common strategy).
In
jj
, it appears thatmerge
always creates a new commit (and somewhat weirdly, it permits the parent commit to be empty, which I expect is a pretty typical case when merging something with@
). Is there a way to create a merge commit if and only if none of the parents contain every other parent? I.e. for two parents, thexor
of the commit sets isn't empty; for more than two, every parent is "behind" at least one other parent in the Git sense.Beta Was this translation helpful? Give feedback.
All reactions