Unclear It is not clear whether the set of files copied into a worktree is now different.
What
A worktree is a second working copy of a git repository that Claude Code can create so work happens separately. A .worktreeinclude file lists ignored files, such as local config, to copy into it.
- Ignored files are now found through a new
git ls-fileshelper instead of runninggit ls-files --others --ignored --exclude-standarddirectly, and the results go through an extra filtering step. This may change which files.worktreeincludecopies. - The helper runs with
core.quotePath=falseand decodes non-ASCII filenames, such as names with accents or non-Latin letters, so.worktreeincludepatterns can match them. - The base branch for a new worktree now comes from the repository's default branch first and falls back to "main". Before, it fell back to
HEAD, the commit you currently have checked out. - Error text from git is now cleaned up in one place.
Why
Repositories with non-ASCII filenames should now get the right files copied into new worktrees. New worktrees may also start from a different branch than before, so check the base if you relied on the old behaviour.
Names in the bundle.worktreeinclude
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not clear whether the set of files copied into a worktree is now different.