Skip to content

feat: add support for copying files to new worktrees#3

Merged
k1LoW merged 1 commit into
mainfrom
copy
Dec 26, 2025
Merged

feat: add support for copying files to new worktrees#3
k1LoW merged 1 commit into
mainfrom
copy

Conversation

@k1LoW

@k1LoW k1LoW commented Dec 26, 2025

Copy link
Copy Markdown
Owner

Introduce options to copy ignored, untracked, and modified files to new worktrees. These options are configurable via git config:

  • wt.copyignored: Copy files ignored by .gitignore.
  • wt.copyuntracked: Copy untracked files.
  • wt.copymodified: Copy modified files.

@k1LoW k1LoW self-assigned this Dec 26, 2025
@k1LoW k1LoW added enhancement New feature or request tagpr:minor labels Dec 26, 2025
Introduce options to copy ignored, untracked, and modified files to new worktrees. These options are configurable via git config:

- `wt.copyignored`: Copy files ignored by `.gitignore`.
- `wt.copyuntracked`: Copy untracked files.
- `wt.copymodified`: Copy modified files.
@github-actions

Copy link
Copy Markdown
Contributor

Code Metrics Report

main (e3beb36) #3 (2bd83a7) +/-
Coverage 0.0% 0.0% 0.0%
Code to Test Ratio 1:0.0 1:0.0 0.0
Test Execution Time 9s 11s +2s
Details
  |                     | main (e3beb36) | #3 (2bd83a7) | +/-  |
  |---------------------|----------------|--------------|------|
  | Coverage            |           0.0% |         0.0% | 0.0% |
  |   Files             |              7 |            8 |   +1 |
  |   Lines             |            303 |          411 | +108 |
  |   Covered           |              0 |            0 |    0 |
  | Code to Test Ratio  |          1:0.0 |        1:0.0 |  0.0 |
  |   Code              |            726 |          908 | +182 |
  |   Test              |              0 |            0 |    0 |
- | Test Execution Time |             9s |          11s |  +2s |

Code coverage of files in pull request scope (0.0% → 0.0%)

Files Coverage +/- Status
cmd/root.go 0.0% 0.0% modified
internal/git/copy.go 0.0% 0.0% added
internal/git/worktree.go 0.0% 0.0% modified

Reported by octocov

@k1LoW k1LoW merged commit e9a90e0 into main Dec 26, 2025
2 checks passed
@k1LoW k1LoW deleted the copy branch December 26, 2025 01:52
@github-actions github-actions Bot mentioned this pull request Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request tagpr:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant