git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Feb 23, 2020, 10:14 UTC
Message-ID
<20200223101407.77036-1-sunshine@sunshineco.com>
In-Reply-To
<20200220002932.5jws6qpnivlvxckw@glandium.org>

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/20200220002932.5jws6qpnivlvxckw@glandium.org/
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(-)
-- 
2.25.1.526.gf05a752211
Previous: Mike HommeyNext: Eric Sunshine
Message 2 of 5 in “git rebase allows branches to be checked out in multiple worktrees”
  1. Mike HommeyFeb 20, 2020
  2. 0/2 git-rebase: refuse to switch to branch checked out elsewhereEric Sunshine, Feb 23, 2020
  3. 1/2 t3400: make test clean up after itselfEric Sunshine, Feb 23, 2020
  4. Eric SunshineFeb 24, 2020
  5. 2/2 rebase: refuse to switch to branch already checked out elsewhereEric Sunshine, Feb 23, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.