From: Junio C Hamano Date: Sun, 19 Mar 2023 22:03:11 +0000 (-0700) Subject: Merge branch 'rj/avoid-switching-to-already-used-branch' X-Git-Tag: v2.41.0-rc0~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96a806f87a379fbc54b5cdb889518e9540d954c9;p=thirdparty%2Fgit.git Merge branch 'rj/avoid-switching-to-already-used-branch' A few subcommands have been taught to stop users from working on a branch that is being used in another worktree linked to the same repository. * rj/avoid-switching-to-already-used-branch: switch: reject if the branch is already checked out elsewhere (test) rebase: refuse to switch to a branch already checked out elsewhere (test) branch: fix die_if_checked_out() when ignore_current_worktree worktree: introduce is_shared_symref() --- 96a806f87a379fbc54b5cdb889518e9540d954c9