Merge branch 'rj/avoid-switching-to-already-used-branch'
commit96a806f87a379fbc54b5cdb889518e9540d954c9
authorJunio C Hamano <gitster@pobox.com>
Sun, 19 Mar 2023 22:03:11 +0000 (19 15:03 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 19 Mar 2023 22:03:11 +0000 (19 15:03 -0700)
treef0318d5114575e8f6d8b6fca5579d2b1e13feaa1
parentc79786c486cb84e2f9dad41a04d982bb23075815
parent894ea945095b74542c6c4f4aefbe20f5b68be437
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()
branch.c
worktree.c
worktree.h