Message ID | xmqqa62f2dj1.fsf_-_@gitster.g (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Re* [PATCH v3] checkout/switch: disallow checking out same branch in multiple worktrees | expand |
Thanks, that should round up the documentation for this behaviour nicely. Carlo
diff --git c/Documentation/git-branch.txt w/Documentation/git-branch.txt index aa2f78c4c2..b12e7940d3 100644 --- c/Documentation/git-branch.txt +++ w/Documentation/git-branch.txt @@ -123,6 +123,10 @@ OPTIONS points to a valid commit. In combination with `-m` (or `--move`), allow renaming the branch even if the new branch name already exists, the same applies for `-c` (or `--copy`). ++ +Note that 'git branch -f <branchname> [<start-point>]' refuses to change +an existing branch `<branchname>` that is checked out in another worktree +linked to the same repository. -m:: --move::