From e9b280148e43a6fc9af61b0bf03b26274e3217bd Mon Sep 17 00:00:00 2001 From: Vincent Ging Ho Yim Date: Mon, 22 Dec 2025 17:57:12 +1100 Subject: [PATCH] cli commit: wrap each flag in backticks in doc comment --- cli/src/commands/commit.rs | 7 ++++--- cli/tests/cli-reference@.md.snap | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cli/src/commands/commit.rs b/cli/src/commands/commit.rs index be69461f1..36f37db38 100644 --- a/cli/src/commands/commit.rs +++ b/cli/src/commands/commit.rs @@ -47,11 +47,12 @@ use crate::ui::Ui; /// * `jj commit` doesn't have a `-r` option. It always acts on the working-copy /// commit (@). /// -/// * `jj split` (without `-d/-A/-B`) will move bookmarks forward from the old -/// change to the child change. `jj commit` doesn't move bookmarks forward. +/// * `jj split` (without `-d`/`-A`/`-B`) will move bookmarks forward from the +/// old change to the child change. `jj commit` doesn't move bookmarks +/// forward. /// /// * `jj split` allows you to move the selected changes to a different -/// destination with `-d/-A/-B`. +/// destination with `-d`/`-A`/`-B`. #[derive(clap::Args, Clone, Debug)] pub(crate) struct CommitArgs { /// Interactively choose which changes to include in the current commit diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index bb84fd5b4..c922735bd 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -624,9 +624,9 @@ When using `--interactive` or path arguments, the selected changes stay in the c * `jj commit` doesn't have a `-r` option. It always acts on the working-copy commit (@). -* `jj split` (without `-d/-A/-B`) will move bookmarks forward from the old change to the child change. `jj commit` doesn't move bookmarks forward. +* `jj split` (without `-d`/`-A`/`-B`) will move bookmarks forward from the old change to the child change. `jj commit` doesn't move bookmarks forward. -* `jj split` allows you to move the selected changes to a different destination with `-d/-A/-B`. +* `jj split` allows you to move the selected changes to a different destination with `-d`/`-A`/`-B`. **Usage:** `jj commit [OPTIONS] [FILESETS]...`