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

Re: [RFC] git worktree: use filesystem cloning where supported

From
Peter Morris <mrpmorris@gmail.com>
Date
Aug 15, 2026, 18:03 UTC
Message-ID
<CAOqWQbKuD_u5d8XbZ=6x9qc61EXNj9hDQjRfe=XE1FkWCp45bg@mail.gmail.com>
In-Reply-To
<xmqq4igwpswr.fsf@gitster.g>
Show 7 quoted lines
> On Fri, 14 Aug 2026 at 17:29, Junio C Hamano <gitster@pobox.com> wrote:
> In that thread, Brian makes a good point that you cannot "copy"
> dirty working tree files from an existing worktree, and also that
> you cannot have the same branch checked out in multiple worktrees at
> the same time, to avoid making other worktrees out of sync when a
> commit is made in one of the worktrees to advance the branch tip.
> [snip]
Hi Junio,

Thanks for the detailed reply. That makes sense, and it's useful to know that the approach is technically viable.

I'm afraid I'm not sufficiently familiar with Git's internals to take this on myself, but hopefully someone with more experience in that area might be interested in implementing it.

I've seen lots of complaints about Solid State Drives dying due to worktree use. I personally have a repo containing over 80GB of images that never change, so currently worktrees just aren't an option for me. I hope this will change in the near future!

Pete
Previous: Junio C HamanoNext: Kristoffer Haugsbakk
Message 4 of 8 in “[RFC] git worktree: use filesystem cloning where supported”
  1. Peter MorrisAug 14, 2026
  2. Kristoffer HaugsbakkAug 14, 2026
  3. Junio C HamanoAug 14, 2026
  4. Peter MorrisAug 15, 2026
  5. Kristoffer HaugsbakkAug 14, 2026
  6. Peter MorrisAug 14, 2026
  7. brian m. carlsonAug 15, 2026
  8. Peter MorrisAug 15, 2026

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.