CheckoutCommand does not support revision expressions using ~ and ^ operators
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Start by locating CheckoutCommand and tracing how it resolves the supplied revision; compare that behavior with JGit’s handling of Git revision expressions. Add support for ~ and ^ expressions such as HEAD~1 and commit^2, then run the relevant checkout tests and verify switching to those revisions works.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
CheckoutCommand currently does not support Git revision expressions using the ~ and ^ operators (For example: HEAD~1, commit^1, commit^2 etc.)
C-git support these for checkout command. But, jgit is throwing InvalidRefException while executing checkout command with the above operators.
Motivation
Developer will be able to seamlessly switch to an older commit to debug certain issues in the code.
For example, if the develop wants to create a new branch from the parent of HEAD, he can execute git checkout HEAD~1 and git checkout -b <branch-name> sequentially
Alternatives considered
No response
Additional context
No response
- Ngôn ngữ chính
- Java
- Star
- 427
- Fork
- 116
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-jgit/jgit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
eclipse-jgit/jgit#329 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
eclipse-jgit/jgit#327 ·
-
Repository.create(boolean bare) should provide a no-arg overload that uses isBare()Có thể làm lại được @hardikyadav12 đã nhận 77 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
eclipse-jgit/jgit#297 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
eclipse-jgit/jgit#293 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-jgit/jgit#288 ·
Tất cả issue của eclipse-jgit/jgit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
constellation-app/constellation#2613 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[JUKEBOW] Arrows can be stolenĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Vakore/ZappierGames#334 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
IETF-Hackathon/pqc-certificates#369 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
? - Needs Triage bot_watch bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NVIDIA/cudf-spark-jni#5594 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100