Skip to content

Commit

Permalink
log: describe the different graph node symbols in help text
Browse files Browse the repository at this point in the history
It's not obvious what the symbols mean. We've had a few questions
about it on Discord recently.
  • Loading branch information
martinvonz committed Nov 16, 2024
1 parent eb91547 commit 77477ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/src/commands/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ use crate::ui::Ui;
///
/// Spans of revisions that are not included in the graph per `--revisions` are
/// rendered as a synthetic node labeled "(elided revisions)".
///
/// The working-copy commit is indicated by a `@` symbol in the graph. Immutable
/// revisions (https://martinvonz.github.io/jj/latest/config/#set-of-immutable-commits)
/// have a `◆` symbol. Other commits have a `○` symbol. To customize these
/// symbols, see https://martinvonz.github.io/jj/latest/config/#node-style.
#[derive(clap::Args, Clone, Debug)]
pub(crate) struct LogArgs {
/// Which revisions to show
Expand Down
2 changes: 2 additions & 0 deletions cli/tests/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,8 @@ Renders a graphical view of the project's history, ordered with children before
Spans of revisions that are not included in the graph per `--revisions` are rendered as a synthetic node labeled "(elided revisions)".
The working-copy commit is indicated by a `@` symbol in the graph. Immutable revisions (https://martinvonz.github.io/jj/latest/config/#set-of-immutable-commits) have a `◆` symbol. Other commits have a `○` symbol. To customize these symbols, see https://martinvonz.github.io/jj/latest/config/#node-style.
**Usage:** `jj log [OPTIONS] [PATHS]...`
###### **Arguments:**
Expand Down

0 comments on commit 77477ae

Please sign in to comment.