Copy gitignored files when creating worktree via lazygit#164
Copy gitignored files when creating worktree via lazygit#164
Conversation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Pull Request ReviewSummaryThis PR adds functionality to copy gitignored files from the source repository to new worktrees created via the lazygit Code Quality & Best PracticesPositive aspects:
Concerns:
Potential Bugs & IssuesCritical:
Minor:
Performance Considerations
Security ConcernsMedium severity:
Test CoverageThe test plan is minimal:
Suggested test scenarios:
RecommendationsHigh priority:
Medium priority: Low priority: VerdictConditional approval - The core implementation is sound, but the lack of null-termination handling could cause issues with special filenames. The silent failure mode is acceptable for this use case (nice-to-have feature), but the special character handling should be fixed before merge. The feature adds genuine value for development workflows, especially for 🤖 Review generated with Claude Code |
Summary
<C-n>in lazygit, copy files ignored by.gitignore(e.g.,.env,node_modules) from the source repo to the new worktree usingrsyncTest plan
<C-n>in the local branches view🤖 Generated with Claude Code