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

Re: [PATCH v3 1/2] fetch: Protect branches checked out in all worktrees

From
Anders Kaseorg <andersk@mit.edu>
Date
Nov 9, 2021, 05:48 UTC
Message-ID
<503ee252-c733-ce8e-14ed-d4d1909682b8@mit.edu>
In-Reply-To
<a1acda2b-7cd0-0c1a-8c60-681d79418872@gmail.com>
On 11/8/21 21:19, Bagas Sanjaya wrote:
Show 7 quoted lines
> On 09/11/21 03.15, Anders Kaseorg wrote:
>> As a side effect of using find_shared_symref, we’ll also refuse the
>> fetch when we’re on a detached HEAD because we’re rebasing or bisecting
>> on the branch in question. This seems like a sensible change.
> 
> We can say "we'll also refuse fetching when we're on a detached HEAD 
> (for example if we're rebasing on the branch in question or bisecting)."

No, I meant what I wrote. We don’t refuse the fetch if we’re on a detached HEAD for some other reason. That would be quite unhelpful.

Anders
Previous: Bagas Sanjaya
Message 5 of 5 in “fetch: Protect branches checked out in all worktrees”
  1. 1/2 fetch: Protect branches checked out in all worktreesAnders Kaseorg, Nov 8, 2021
  2. Junio C HamanoNov 8, 2021
  3. Anders KaseorgNov 8, 2021
  4. Bagas SanjayaNov 9, 2021
  5. Anders KaseorgNov 9, 2021

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.