summaryrefslogtreecommitdiff
path: root/Documentation/git-commit.txt
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2020-02-23 05:14:07 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-02-24 11:34:41 -0800
commitb5cabb4a967fa455378ee7ddfa831a9bf0244753 (patch)
treeff679012db6fa875e43265ced26a6e1548872b1c /Documentation/git-commit.txt
parentt3400: make test clean up after itself (diff)
downloadtgif-b5cabb4a967fa455378ee7ddfa831a9bf0244753.tar.xz
rebase: refuse to switch to branch already checked out elsewhere
The invocation "git rebase <upstream> <branch>" switches to <branch> before performing the rebase operation. However, unlike git-switch, git-checkout, and git-worktree which all refuse to switch to a branch that is already checked out in some other worktree, git-rebase switches to <branch> unconditionally. Curb this careless behavior by making git-rebase also refuse to switch to a branch checked out elsewhere. Reported-by: Mike Hommey <mh@glandium.org> Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-commit.txt')
0 files changed, 0 insertions, 0 deletions