cli: fix doc about colocated repo created by "jj git init --git-repo=."

Ref changes are imported and exported automatically so long as jj and git
share the same workspace directory.
This commit is contained in:
Yuya Nishihara 2024-02-07 19:33:16 +09:00 committed by Martin von Zweigbergk
parent b13cfef095
commit 4f0db3607a

View file

@ -142,11 +142,7 @@ pub struct GitInitArgs {
/// If the specified `--git-repo` path happens to be the same as
/// the `jj` repo path (both .jj and .git directories are in the
/// same working directory), then both `jj` and `git` commands
/// will work on the repo, with the exception that changes from `jj`
/// will not be auto-exported to the git repo.
///
/// Auto-exporting from `jj` to `git` is only enabled for new repos.
/// See `--colocate` above.
/// will work on the same repo. This is called a co-located repo.
///
/// This option is mutually exclusive with `--colocate`.
#[arg(long, conflicts_with = "colocate", value_hint = clap::ValueHint::DirPath)]