mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-27 06:23:18 +00:00
docs: don't say "both inclusive" about x:y
and x..y
revset endpoint
We currently say that `x..y` is "Ancestors of `y` that are not also ancestors of `x`, both inclusive.". However, it's easy to think that "both inclusive" means that both `x` and `y` are included in the set, which is not the case. What we mean is more like "{Ancestors of `y`, including `y` itself} that are not also {ancestors of `x`, including `x` itself}.". Given that we already define ancestors and descendants as being inclusive on the lines above, and we also give the equivalent expressions using the `x:` and `:y` operators, it's probably best to just skip the "both inclusive" parts.
This commit is contained in:
parent
cfadc50cb2
commit
18d73bc673
1 changed files with 4 additions and 5 deletions
|
@ -60,11 +60,10 @@ only symbols.
|
|||
* `x+`: Children of `x`.
|
||||
* `:x`: Ancestors of `x`, including the commits in `x` itself.
|
||||
* `x:`: Descendants of `x`, including the commits in `x` itself.
|
||||
* `x:y`: Descendants of `x` that are also ancestors of `y`, both inclusive.
|
||||
Equivalent to `x: & :y`. This is what `git log` calls `--ancestry-path x..y`.
|
||||
* `x..y`: Ancestors of `y` that are not also ancestors of `x`, both inclusive.
|
||||
Equivalent to `:y ~ :x`. This is what `git log` calls `x..y` (i.e. the same as
|
||||
we call it).
|
||||
* `x:y`: Descendants of `x` that are also ancestors of `y`. Equivalent to
|
||||
`x: & :y`. This is what `git log` calls `--ancestry-path x..y`.
|
||||
* `x..y`: Ancestors of `y` that are not also ancestors of `x`. Equivalent to
|
||||
`:y ~ :x`. This is what `git log` calls `x..y` (i.e. the same as we call it).
|
||||
* `..x`: Ancestors of `x`, including the commits in `x` itself. Equivalent to
|
||||
`:x` and provided for consistency.
|
||||
* `x..`: Revisions that are not ancestors of `x`.
|
||||
|
|
Loading…
Reference in a new issue