From 5322c1d2bf0ecb07e288a477d9fb1eb21ec54782 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Wed, 1 May 2024 22:27:00 -0700 Subject: [PATCH] cli `--ignore-immutable` help: remove double negative --- cli/src/cli_util.rs | 2 +- cli/tests/cli-reference@.md.snap | 2 +- cli/tests/test_global_opts.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/src/cli_util.rs b/cli/src/cli_util.rs index bc96a3931..ec892bd6d 100644 --- a/cli/src/cli_util.rs +++ b/cli/src/cli_util.rs @@ -2366,7 +2366,7 @@ pub struct GlobalArgs { /// implies `--ignore-working-copy`. #[arg(long, global = true)] pub ignore_working_copy: bool, - /// Don't prevent rewriting immutable commits + /// Allow rewriting immutable commits /// /// By default, Jujutsu prevents rewriting commits in the configured set of /// immutable commits. This option disables that check and lets you rewrite diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index 61135fb44..e97ae1766 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -153,7 +153,7 @@ To get started, see the tutorial at https://github.com/martinvonz/jj/blob/main/d Possible values: `true`, `false` -* `--ignore-immutable` — Don't prevent rewriting immutable commits +* `--ignore-immutable` — Allow rewriting immutable commits Possible values: `true`, `false` diff --git a/cli/tests/test_global_opts.rs b/cli/tests/test_global_opts.rs index 0dd196f26..a0c145de5 100644 --- a/cli/tests/test_global_opts.rs +++ b/cli/tests/test_global_opts.rs @@ -592,7 +592,7 @@ fn test_help() { Global Options: -R, --repository Path to repository to operate on --ignore-working-copy Don't snapshot the working copy, and don't update it - --ignore-immutable Don't prevent rewriting immutable commits + --ignore-immutable Allow rewriting immutable commits --at-operation Operation to load the repo at [default: @] [aliases: at-op] --debug Enable debug logging --color When to colorize output (always, never, auto)