Skip to content

Commit

Permalink
Update docs/revsets.md: document ancestors(x[, depth]) optional par…
Browse files Browse the repository at this point in the history
…ameter
  • Loading branch information
sullyj3 committed Sep 5, 2023
1 parent a8d22a0 commit b0276d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/revsets.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ revsets (expressions) as arguments.

* `parents(x)`: Same as `x-`.
* `children(x)`: Same as `x+`.
* `ancestors(x)`: Same as `:x`.
* `ancestors(x[, depth])`: Last `depth` ancestors of `x` (including `x`
itself). `ancestors(x)` is the same as `:x`, returning all ancestors.
* `descendants(x)`: Same as `x:`.
* `connected(x)`: Same as `x:x`. Useful when `x` includes several commits.
* `all()`: All visible commits in the repo.
Expand Down

0 comments on commit b0276d1

Please sign in to comment.