Add ability to inspect specific commits and diffs via command line arguments
- Ngôn ngữ chính
- Rust
- Star
- 22.5k
- Fork
- 774
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**Is your feature request related to a problem? Please describe.**
It should be easily possible to inspect the changes by a given git commit/patch or range of commits.
**Describe the solution you'd like**
There should be command line arguments to show the git commits.
*Examples:*
```shell
# inspect a specific git commit
gitui --commit COMMITHASH
# inspect a range of commits
gitui --commit REV1..REV2
# inspect a range of commits and skip the first one
gitui --commit REV1^..REV2
# inspect from a given commit to HEAD
gitui --commit REV1..HEAD
gitui --commit REV1..
# inspect a git patch file
gitui --inspect SOMEFILENAME.patch
```
**Describe alternatives you've considered**
There should be a method via the CLI UI for selecting a range of commits or a patch file for inspection.
**Additional context**
- See [Git Revision](https://git-scm.com/docs/gitrevisions) on how a range of git commits can be specified
- See [Git Diff and Patch](https://www.freecodecamp.org/news/git-diff-and-patch/) and [Git Format-Patch](https://git-scm.com/docs/git-format-patch) on details of git patch files
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách xác định phần phân tích đối số dòng lệnh của gitui và các điểm vào hiện có để kiểm tra commit hoặc diff. Xem xét cách các ví dụ sử dụng --commit và --inspect cần được ánh xạ tới các phạm vi revision của Git và các tệp patch. Hoàn thành khi các đối số được yêu cầu hoạt động với các trường hợp commit, phạm vi, HEAD và tệp patch đã liệt kê.
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, rust
- Lĩnh vực
- cli, devtools
- 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