Changes:
- The message explains the change as a bug fix.
- Introduced a new helper is_shared_symref() to be used from
find_shared_symref() and die_if_checked_out().
- Tests for rebase and switch.
Rubén Justo (3):
branch: fix die_if_checked_out() when ignore_current_worktree
rebase: refuse to switch to a branch already checked out elsewhere (test)
switch: reject if the branch is already checked out elsewhere (test)
branch.c | 16 +++++++++-----
t/t2060-switch.sh | 29 +++++++++++++++++++++++++
t/t3400-rebase.sh | 14 ++++++++++++
worktree.c | 54 +++++++++++++++++++++++++----------------------
worktree.h | 6 ++++++
5 files changed, 89 insertions(+), 30 deletions(-)