From e11bc5dc04e5e9ea0ff583c8f96d4900d09ace4c Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sat, 16 Nov 2024 10:01:18 -0800 Subject: [PATCH] log: describe how to see all revisions, point to revset docs Perhaps it would be nice to point to the revset docs from every argument that takes a revset, or perhaps that would be too verbose. `jj log` is perhaps where most people first run into revset syntax, so I hope pointing to the docs from there is a good start. --- cli/src/commands/log.rs | 5 ++++- cli/tests/cli-reference@.md.snap | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cli/src/commands/log.rs b/cli/src/commands/log.rs index b01c594bd..22a5126f0 100644 --- a/cli/src/commands/log.rs +++ b/cli/src/commands/log.rs @@ -43,7 +43,10 @@ use crate::ui::Ui; /// /// Renders a graphical view of the project's history, ordered with children /// before parents. By default, the output only includes mutable revisions, -/// along with some additional revisions for context. +/// along with some additional revisions for context. Use `jj log -r ::` to see +/// all revisions. See `jj help -k revsets` (or +/// https://martinvonz.github.io/jj/latest/revsets/) for information about the +/// syntax. /// /// Spans of revisions that are not included in the graph per `--revisions` are /// rendered as a synthetic node labeled "(elided revisions)". diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index d730d729b..364ebf3a4 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -1336,7 +1336,7 @@ This excludes changes from other commits by temporarily rebasing `--from` onto ` Show revision history -Renders a graphical view of the project's history, ordered with children before parents. By default, the output only includes mutable revisions, along with some additional revisions for context. +Renders a graphical view of the project's history, ordered with children before parents. By default, the output only includes mutable revisions, along with some additional revisions for context. Use `jj log -r ::` to see all revisions. See `jj help -k revsets` (or https://martinvonz.github.io/jj/latest/revsets/) for information about the syntax. Spans of revisions that are not included in the graph per `--revisions` are rendered as a synthetic node labeled "(elided revisions)".