Skip to content

feat: add copy command and extraFiles config for worktrees#8

Merged
natterstefan merged 8 commits intomainfrom
natterstefan/impartial-way
Mar 15, 2026
Merged

feat: add copy command and extraFiles config for worktrees#8
natterstefan merged 8 commits intomainfrom
natterstefan/impartial-way

Conversation

@natterstefan
Copy link
Owner

Summary

  • Add dotswitch copy <files...> command to copy arbitrary files from the main repo root into the current worktree (--force, --dry-run flags supported)
  • Add extraFiles config option that automatically copies listed files from the main repo root on every dotswitch use --root
  • New copyFiles lib function exported for programmatic use

Test plan

  • Unit tests for copyFiles lib (7 tests)
  • Unit tests for copyCommand handler (5 tests)
  • Unit tests for useCommand with extraFiles (3 tests)
  • Integration tests for copy in real git worktrees (5 tests)
  • All 155 tests passing
  • Biome lint/format clean

@natterstefan natterstefan self-assigned this Mar 15, 2026
@natterstefan natterstefan added the enhancement New feature or request label Mar 15, 2026
@natterstefan natterstefan marked this pull request as ready for review March 15, 2026 19:25
@natterstefan natterstefan merged commit 16efc58 into main Mar 15, 2026
4 checks passed
@natterstefan natterstefan deleted the natterstefan/impartial-way branch March 15, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant