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

Re: [PATCH 0/4] Link worktrees with relative paths

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Oct 6, 2024, 05:11 UTC
Message-ID
<CAPig+cTVbXVffSeyNAV3c0zuSUozY7giWtMw3GpHs+xVEpaNvA@mail.gmail.com>
In-Reply-To
<CAPig+cTB-sA-g4cdhfEjWwY1mnbWJ41e=bOCNwp=Y8JKvpmpRg@mail.gmail.com>
On Sun, Oct 6, 2024 at 1:04 AM Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 9 quoted lines
> On Sun, Oct 6, 2024 at 12:59 AM Caleb White <cdwhite3@pm.me> wrote:
> > This patch series modifies Git's handling of worktree linking to use
> > relative paths instead of absolute paths. The motivation behind this
> > change is to enhance the robustness of worktree links when the main
> > repository is moved, or when used in environments like containerized
> > development where absolute paths differ across systems.
>
> Unfortunately, these patches are whitespace-damaged. Can you please
> resubmit using either `git send-email` or GitGitGadget[1]?

Also, since you're touching infer_backlink(), see [1] which makes some changes nearby.

And you might be interested in [2] which may indicate that there are some holes in the tests around worktrees which might need filling. (Since your patches are whitespace-damaged, I haven't checked whether your series succeeds or fails in the way the series to which [2] is a response fails.)

[1]: https://lore.kernel.org/git/20240923075416.54289-1-ericsunshine@charter.net/ [2]: https://lore.kernel.org/git/CAPig+cQXFy=xPVpoSq6Wq0pxMRCjS=WbkgdO+3LySPX=q0nPCw@mail.gmail.com/

Previous: Eric SunshineNext: Caleb White
Message 10 of 23 in “Link worktrees with relative paths”
  1. 0/4 Link worktrees with relative pathsCaleb White, Oct 6, 2024
  2. 1/4 worktree: refactor infer_backlink() to use *strbufCaleb White, Oct 6, 2024
  3. 2/4 worktree: link worktrees with relative pathsCaleb White, Oct 6, 2024
  4. 3/4 worktree: sync worktree paths after gitdir moveCaleb White, Oct 6, 2024
  5. 4/4 worktree: prevent null pointer dereferenceCaleb White, Oct 6, 2024
  6. Eric SunshineOct 6, 2024
  7. Caleb WhiteOct 6, 2024
  8. Eric SunshineOct 6, 2024
  9. Eric SunshineOct 6, 2024
  10. Eric SunshineOct 6, 2024
  11. Caleb WhiteOct 6, 2024
  12. Eric SunshineOct 6, 2024
  13. Caleb WhiteOct 6, 2024
  14. Eric SunshineOct 6, 2024
  15. Caleb WhiteOct 6, 2024
  16. Eric SunshineOct 6, 2024
  17. Caleb WhiteOct 6, 2024
  18. Eric SunshineOct 6, 2024
  19. Kristoffer HaugsbakkOct 6, 2024
  20. Caleb WhiteOct 6, 2024
  21. Caleb WhiteOct 6, 2024
  22. Eric SunshineOct 6, 2024
  23. Caleb WhiteOct 6, 2024

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.