gh "base repository" not worktree specific
- Ngôn ngữ chính
- Go
- Star
- 46.3k
- Fork
- 9k
- Merge trung bình
- 2 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 97
Mô tả
gh version 1.0.0 (2020-09-16)
Setup: a "bare" git repository with multiple remotes and multiple git worktrees. For example: both https://github.com/llvm/llvm-project and https://github.com/apple/llvm-project
Problem: Unlike similar git workflows, `gh` asks the user to pick a "base repository" which is tied to the bare repository, not branches nor worktrees.
Workaround: create a wrapper around `gh` that tries to set `GH_REPO` as needed. In short, the script will extract the GitHub URL from git and pass it to gh: `git config remote.$(git config branch.$(git branch --show-current).remote).url`
Finally, and unless I missed something, the "base repository" feature seems undocumented.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện thiết lập một repository bare với nhiều remote và worktree, sau đó kiểm tra entry point để gh chọn base repository và cách nó đọc cấu hình Git. Công việc được xem là hoàn tất khi base repository được chọn đi theo worktree hoặc các branch đang hoạt động, đồng thời hành vi của base repository trước đây chưa được tài liệu hóa đã được tài liệu hóa.
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, go
- Lĩnh vực
- cli
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100