jj debug init-local: fixup, docs

Fixups to #5845
This commit is contained in:
Ilya Grigoriev 2025-03-04 19:14:19 -08:00
parent 4c5800ac4a
commit 5590e9473e
2 changed files with 9 additions and 4 deletions

View File

@ -25,10 +25,15 @@ use crate::command_error::user_error_with_message;
use crate::command_error::CommandError;
use crate::ui::Ui;
/// Create a new repo in the given directory
/// Create a new repo in the given directory using the proof-of-concept native
/// backend
///
/// If the given directory does not exist, it will be created. If no directory
/// is given, the current directory is used.
/// The proof-of-concept backend is called "local" because it does not support
/// cloning, pushing, or fetching repositories or commits.
///
/// This command is otherwise analogous to `jj git init`. If the given directory
/// does not exist, it will be created. If no directory is given, the current
/// directory is used.
#[derive(clap::Args, Clone, Debug)]
pub(crate) struct DebugInitLocalArgs {
/// The destination directory

View File

@ -4,7 +4,7 @@ set -euo pipefail
new_tmp_dir
(
jj init --config ui.allow-init-native=true
jj debug init-local
echo "first" > file
jj bookmark create first
jj commit -m 'first'