mirror of
https://github.com/git/git.git
synced 2024-11-27 03:53:55 +08:00
Merge branch 'kh/checkout-ignore-other-docfix'
Doc updates. * kh/checkout-ignore-other-docfix: checkout: refer to other-worktree branch, not ref
This commit is contained in:
commit
645cc7a2a7
@ -290,10 +290,10 @@ Note that this option uses the no overlay mode by default (see also
|
||||
`--overlay`), and currently doesn't support overlay mode.
|
||||
|
||||
--ignore-other-worktrees::
|
||||
`git checkout` refuses when the wanted ref is already checked
|
||||
out by another worktree. This option makes it check the ref
|
||||
out anyway. In other words, the ref can be held by more than one
|
||||
worktree.
|
||||
`git checkout` refuses when the wanted branch is already checked
|
||||
out or otherwise in use by another worktree. This option makes
|
||||
it check the branch out anyway. In other words, the branch can
|
||||
be in use by more than one worktree.
|
||||
|
||||
--overwrite-ignore::
|
||||
--no-overwrite-ignore::
|
||||
|
@ -1716,7 +1716,7 @@ static struct option *add_common_switch_branch_options(
|
||||
N_("update ignored files (default)"),
|
||||
PARSE_OPT_NOCOMPLETE),
|
||||
OPT_BOOL(0, "ignore-other-worktrees", &opts->ignore_other_worktrees,
|
||||
N_("do not check if another worktree is holding the given ref")),
|
||||
N_("do not check if another worktree is using this branch")),
|
||||
OPT_END()
|
||||
};
|
||||
struct option *newopts = parse_options_concat(prevopts, options);
|
||||
|
Loading…
Reference in New Issue
Block a user