mbox series

[v2,0/3] fix die_if_checked_out() when ignore_current_worktree

Message ID f7f45f54-9261-45ea-3399-8ba8dee6832b@gmail.com (mailing list archive)
Headers show
Series fix die_if_checked_out() when ignore_current_worktree | expand

Message

Rubén Justo Jan. 22, 2023, 1:20 a.m. UTC
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(-)