]> git.ipfire.org Git - thirdparty/git.git/commit - branch.c
branch: protect branches checked out in all worktrees
authorAnders Kaseorg <andersk@mit.edu>
Wed, 1 Dec 2021 22:15:47 +0000 (14:15 -0800)
committerJunio C Hamano <gitster@pobox.com>
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 <andersk@mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c
t/t3200-branch.sh