From e9c482c0176d5f0c0c28436f78bd6002aa23a5e2 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Wed, 31 Jan 2024 20:53:23 -0800 Subject: [PATCH] docs: mention in `jj help config edit` that the command can create a file --- cli/src/commands/config.rs | 3 +++ cli/tests/cli-reference@.md.snap | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/src/commands/config.rs b/cli/src/commands/config.rs index cf863c436..3ed0efbca 100644 --- a/cli/src/commands/config.rs +++ b/cli/src/commands/config.rs @@ -134,6 +134,9 @@ pub(crate) struct ConfigSetArgs { } /// Start an editor on a jj config file. +/// +/// Creates the file if it doesn't already exist regardless of what the editor +/// does. #[derive(clap::Args, Clone, Debug)] pub(crate) struct ConfigEditArgs { #[clap(flatten)] diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index fbd4d6c5e..34e15a0fb 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -554,7 +554,9 @@ Update config file to set the given option to a given value ## `jj config edit` -Start an editor on a jj config file +Start an editor on a jj config file. + +Creates the file if it doesn't already exist regardless of what the editor does. **Usage:** `jj config edit <--user|--repo>`