Skip to content

git-rebase: refuse to switch to branch checked out elsewhere

Eric Sunshine git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2t3400: make test clean up after itselft/t3400-rebase.sh+1 -11 reply
2/2rebase: refuse to switch to branch already checked out elsewherebuiltin/rebase.c t/t3400-rebase.sh+21 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] git-rebase: refuse to switch to branch checked out elsewhere

git-switch, git-checkout, and git-worktree all refuse to switch to a branch already checked out in some other worktree. Mike Hommey reported[1] that git-rebase is not careful like those other commands. This patch series fixes that shortcoming.

[1]: https://lore.kernel.org/git/[email protected]/

Eric Sunshine (2):
t3400: make test clean up after itself
rebase: refuse to switch to branch already checked out elsewhere

 builtin/rebase.c  |  5 +++--
 t/t3400-rebase.sh | 20 +++++++++++++++++++-
 2 files changed, 22 insertions(+), 3 deletions(-)
Signature · 1 line
2.25.1.526.gf05a752211