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

Re: [PATCH 0/3] extend --ignore-other-worktrees to 'rebase', add hints

From
GSGabriel Scherer <gabriel.scherer@inria.fr>
Date
Sep 13, 2025, 20:02 UTC
Message-ID
<a8874cde-cd00-41b0-ba41-ab2fd52ce45d@inria.fr>
In-Reply-To
<F7295141-49F5-4013-911A-7730C130F8CC@gmail.com>
Thanks for looking!
On 13/09/2025 21:30, Ben Knoble wrote:
> I’m eager to see further reviews, but nothing I saw in this series stuck out as a major problem. I saw we updated the rebase test cases; should we add some more for checkout or worktree?

There is already a check of the --ignore-other-worktrees option for 'checkout' in t/t2060-switch.sh. The test only records success or failure, not hints; but I checked manually that the hints are shown as expected.

There are code paths in 'worktree add' that call the same die_if_checked_out function, but I did not touch those. They seem to support the --force option to disable the check, and we could also have a hint to make this self-discoverable. (One could suggest also having a --ignore-other-worktrees option in 'worktree' for consistency, but unlike 'checkout' the --force option currently has no additional effect than ignoring other worktrees.) Please let me know if you think that some changes to worktree.c should be included in the present patchset for consistency.

Previous: Ben KnobleNext: Phillip Wood
Message 19 of 20 in “extend --ignore-other-worktrees to 'rebase', add hints”
  1. 0/3 extend --ignore-other-worktrees to 'rebase', add hintsGabriel Scherer, Sep 13, 2025
  2. 1/3 checkout: provide hint when failing due to another worktreeGabriel Scherer, Sep 13, 2025
  3. Kristoffer HaugsbakkSep 13, 2025
  4. Gabriel SchererSep 14, 2025
  5. Junio C HamanoSep 15, 2025
  6. Gabriel SchererSep 15, 2025
  7. Junio C HamanoSep 16, 2025
  8. Junio C HamanoSep 17, 2025
  9. Gabriel SchererSep 17, 2025
  10. Phillip WoodSep 19, 2025
  11. Ben KnobleSep 14, 2025
  12. Ben KnobleSep 14, 2025
  13. Kristoffer HaugsbakkSep 14, 2025
  14. 2/3 rebase: support --ignore-other-worktreesGabriel Scherer, Sep 13, 2025
  15. Phillip WoodSep 15, 2025
  16. Junio C HamanoSep 15, 2025
  17. 3/3 rebase: hint when failing on branch used by another worktreeGabriel Scherer, Sep 13, 2025
  18. Ben KnobleSep 13, 2025
  19. Gabriel SchererSep 13, 2025
  20. Phillip WoodSep 15, 2025

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.