mirror of
https://github.com/jj-vcs/jj.git
synced 2026-07-08 02:00:44 +08:00
This adds the revset function `merge_point(x)` which computes the point where
all commits in `x` merge together. It is the compliment to the `fork_point(x)`
function and defined as `roots(x_1:: & x_2:: & ... & x_N::)`, where `x_{1..N}`
are the commits in the revset `x`. The merge point of the empty revset is
`none()`, and if `x` is a single commit, then `merge_point(x)` is `x` itself.
Related to https://github.com/jj-vcs/jj/issues/8643
Implemented in https://github.com/jj-vcs/jj/pull/9719