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

Re: [PATCH] bisect: fix "reset" when branch is checked out elsewhere

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 6, 2023, 19:04 UTC
Message-ID
<xmqqwn4u7gyt.fsf@gitster.g>
In-Reply-To
<a66218a3-919d-eca2-1859-41ac02aa38e7@gmail.com>
Rubén Justo <rjusto@gmail.com> writes:
> The devil is in the details: "git branch -m", "git branch -d".
>
> We're not ready to have BISECT_START pointing to a deleted branch, or
> renaming a branch pointed by it.

It indicates that the callers of find_shared_symref() to see if "is this branch being actively used by checked out, bisected, or rebased, and I shouldn't touch it?" need to know more than what find_shared_symref() interface gives them---namely, "can I repoint it to a different commit?" and "can I make it disappear?" are different conditions they need to be able to learn.

Until that distinction becomes expressible, I am actually OK with forbidding both operations, i.e. while a branch is being bisected elsewhere, we should be able to update its tip to point at a different commit, but it is OK to forbid that because we cannot allow the branch be renamed away or removed.

Thanks.
Previous: Rubén JustoNext: Rubén Justo
Message 7 of 15 in “bisect: fix "reset" when branch is checked out elsewhere”
  1. bisect: fix "reset" when branch is checked out elsewhereRubén Justo, Jan 22, 2023
  2. Junio C HamanoJan 23, 2023
  3. Rubén JustoJan 26, 2023
  4. Junio C HamanoJan 26, 2023
  5. Junio C HamanoJan 26, 2023
  6. Rubén JustoFeb 4, 2023
  7. Junio C HamanoFeb 6, 2023
  8. bisect: fix "reset" when branch is checked out elsewhereRubén Justo, Feb 4, 2023
  9. Junio C HamanoFeb 6, 2023
  10. Rubén JustoFeb 8, 2023
  11. Junio C HamanoFeb 8, 2023
  12. Rubén JustoFeb 8, 2023
  13. Eric SunshineFeb 15, 2023
  14. Rubén JustoFeb 15, 2023
  15. bisect: fix "reset" when branch is checked out elsewhereRubén Justo, Feb 20, 2023

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.