Skip to content

Support a .worktreeinclude file#490

Open
matthewbauer wants to merge 2 commits intoxenodium:mainfrom
matthewbauer:add-worktree-include-file
Open

Support a .worktreeinclude file#490
matthewbauer wants to merge 2 commits intoxenodium:mainfrom
matthewbauer:add-worktree-include-file

Conversation

@matthewbauer
Copy link
Copy Markdown
Contributor

@matthewbauer matthewbauer commented Apr 1, 2026

This is a file which we use to "include" untracked files in new worktree. Disabled by default, this makes it easier to share files between main repo and worktrees. I set mine to:

.env
.envrc
**/.claude/settings.local.json

See
https://code.claude.com/docs/en/common-workflows#copy-gitignored-files-to-worktrees for how claude’s works.

Thank you for contributing to agent-shell!

Checklist

  • I agree to communicate (PR description and comments) with the author myself (not AI-generated).
  • I've reviewed all code in PR myself and will vouch for its quality.
  • I've read and followed the Contributing guidelines.
  • I've filed a feature request/discussion for a new feature.
  • I've added tests where applicable.
  • I've updated documentation where necessary.
  • I've run M-x checkdoc and M-x byte-compile-file.

This is a file which we use to "include" untracked files in new
worktree. Disabled by default, this makes it easier to share files
between main repo and worktrees. I set mine to:

.env
.envrc
**/.claude/settings.local.json

See
https://code.claude.com/docs/en/common-workflows#copy-gitignored-files-to-worktrees
for how claude’s works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant