Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.334 ·

Worktree creation handles non-ASCII filenames and picks the default branch first

.worktreeinclude now matches non-ASCII filenames, and new worktrees start from the repo's default branch, falling back to main

Group of 2 You'll notice Improvements
JSON All of v2.1.334
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
WorktreesArea: what it touches
ImprovementsKind: in v2.1.334,
ImprovementsSection of the release

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-files helper instead of running git ls-files --others --ignored --exclude-standard directly, and the results go through an extra filtering step. This may change which files .worktreeinclude copies.
  • The helper runs with core.quotePath=false and decodes non-ASCII filenames, such as names with accents or non-Latin letters, so .worktreeinclude patterns 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.

Read from
Names in the bundle.worktreeinclude
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether the set of files copied into a worktree is now different.

See this entry in the whole of v2.1.334 →

Feedback