Support configurable worktree paths per project
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 2.1k
- Fork
- 153
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Feature summary
Allow custom worktree location and naming per project
### What problem are you trying to solve?
Today, worktrees are created in a fixed structure like:
```text
repo_clone_path/
└── copilot-worktrees/
└── repo_clone_name/
└── random-worktree-name
```
For some projects, especially large C++ codebases, this can create very long filesystem paths. Those long paths can cause build or compilation issues or make the worktree harder to use in environments with strict path-length limits.
### Proposed solution
Allow users to customize the worktree location and naming structure on a per-project basis.
Possible improvements:
- Let users set a custom base worktree directory
- Let users customize the worktree folder structure
- Prefer shorter or more predictable generated worktree names
- Optionally support random-name generation patterns that keep paths compact
### Workflow impact
This would improve reliability for projects that are sensitive to path length, especially C++ and other build-heavy repositories. It would also make worktrees easier to manage for users who need a more compact or organization-specific directory layout.
### Installation context
Project-level worktree setup in the GitHub App
### Additional context
Current structure:
```text
repo_clone_path/
└── copilot-worktrees/
└── repo_clone_name/
└── random-worktree-name
```
A customizable structure would help avoid long path issues and make worktrees more accessible in constrained environments.
Hướng dẫn đóng góp
Hướng nghiên cứu
Không có tệp, bài kiểm thử hoặc điểm vào triển khai nào được nêu. Hãy bắt đầu bằng cách xác định thiết lập worktree ở cấp dự án của GitHub App và lần theo cách thiết lập này tạo ra cấu trúc hiện tại repo_clone_path/copilot-worktrees/repo_clone_name/random-worktree-name. Trước khi triển khai, hãy làm rõ những tùy chọn tùy chỉnh và quy tắc đặt tên nào là bắt buộc; phần hoàn tất cần bao gồm cấu hình theo từng dự án để tạo ra các đường dẫn worktree ngắn hơn và có thể dự đoán một cách đáng tin cậy.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- git, github
- Lĩnh vực
- desktop, developer-experience, tooling
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 38/100