summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2024-10-18 13:56:24 -0400
committerTaylor Blau <me@ttaylorr.com>2024-10-18 13:56:24 -0400
commit645cc7a2a7274a92403d2848ef643a96f1589d09 (patch)
treeac68d360d6d439e9ced1e467eed235c169051329
parent44917341071abc48d460f171fa0b0e5ae747e641 (diff)
parentb8139c8f4e761bd24f4ffc3170203e82c75165e2 (diff)
Merge branch 'kh/checkout-ignore-other-docfix'
Doc updates. * kh/checkout-ignore-other-docfix: checkout: refer to other-worktree branch, not ref
-rw-r--r--Documentation/git-checkout.txt8
-rw-r--r--builtin/checkout.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt
index 8bdfa54ab0..bf26655764 100644
--- a/Documentation/git-checkout.txt
+++ b/Documentation/git-checkout.txt
@@ -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::
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 9c30000d3a..c449558e66 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -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);