]> git.99rst.org Git - git.git/commit
branch: protect branches checked out in all worktrees
authorAnders Kaseorg <redacted>
Wed, 1 Dec 2021 22:15:47 +0000 (14:15 -0800)
committerJunio C Hamano <redacted>
Thu, 2 Dec 2021 06:18:25 +0000 (22:18 -0800)
commit593a2a5d0639b4b4f91ff6e6ffb64e72020f8fd8
tree2903e1a81584b4d98ec45d96134fbffefc517917
parent9fdf4f1db422cc259e4a3ce0023a255102c6fa3b
branch: protect branches checked out in all worktrees

Refuse to force-move a branch over the currently checked out branch of
any working tree, not just the current one.

Signed-off-by: Anders Kaseorg <redacted>
Signed-off-by: Junio C Hamano <redacted>
branch.c
t/t3200-branch.sh
git clone https://git.99rst.org/PROJECT