]> git.ipfire.org Git - thirdparty/git.git/commit
branch: report active bisect run when rejecting delete
authorRené Scharfe <l.s.r@web.de>
Sat, 25 Jul 2026 10:41:07 +0000 (12:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 25 Jul 2026 16:22:03 +0000 (09:22 -0700)
commit7780bff8d161fe42d65954e026dcc621c50bd128
tree59b9ca6731c84dc97723ec09e22a6e52a3d505bd
parent9a0c4701dcd5725c4184599322b52933ff5005ca
branch: report active bisect run when rejecting delete

git branch refuses to delete branches that are currently checked out
with a message like this: "error: cannot delete branch 'foo' used by
worktree at '/path/of/worktree'".  This can be confusing if it's an
internal checkout for git bisect.  Report a more specific error in
that case to help users that might have forgotten their bisect run.

Suggested-by: stsp <stsp2@yandex.ru>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c
branch.h
builtin/branch.c
t/t3200-branch.sh