UnifiedDiff for staged files with Git
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Bắt đầu trong CompareUIPlugin.prepareUnifiedDiff(...) và theo dõi cách IFileEditorInput, UnifiedDiffSource và fallback compare editor được chọn. So sánh đường dẫn staged index-versus-HEAD với đường dẫn unstaged workspace-file, sau đó xác định và ghi lại hành vi unified-diff được mong đợi đối với các tệp staged. Được xem là hoàn tất khi hành vi đã chọn được triển khai và được bao phủ bởi các kiểm tra so sánh liên quan.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The UnifiedDiff compares currently against a file from the workspace. As soon as a file is staged, the comparison falls back to the old compare editor as now two Git states (index vs head) are compared.
The fallback is decided in CompareUIPlugin.prepareUnifiedDiff(...) . The unified diff needs a workspace file ( IFileEditorInput ) to overlay onto:
if (leftEditorInput instanceof IFileEditorInput) { // working-tree side
return new UnifiedDiffSource(..., UnifiedDiffMode.REVERT_MODE, ...);
}
if (rightEditorInput instanceof IFileEditorInput) {
return new UnifiedDiffSource(..., UnifiedDiffMode.OVERLAY_READ_ONLY_MODE, ...);
}
return null; // ← neither side is a workspace file → classic compare editor
• Unstaged changes (working tree vs. index/HEAD): the left side is the workspace file → unified diff works. ✅
• Staged changes (index vs. HEAD): both sides are Git revisions, neither is an IFileEditorInput → prepareUnifiedDiff returns null → classic compare. ❌
Not sure how we should handle that. Should we still compare against the workspace file? Or leave that to the old compare?
cc @tobiasmelcher
- Ngôn ngữ chính
- Java
- Star
- 165
- Fork
- 174
- Merge trung bình
- 2 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 45
Chuẩn bị môi trường
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-platform/eclipse.platform
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
eclipse-platform/eclipse.platform#3019 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eclipse-platform/eclipse.platform#2940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Terminal views all show same name 'Terminal' in Ctrl+F7 view switcher popupCó thể đã có người làm @ravnskjaer đã nhận 6 ngày trước. Đang mởbug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eclipse-platform/eclipse.platform#2774 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eclipse-platform/eclipse.platform#2593 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Win32] Folder becomes a file in the workspace tree when a child is deleted during `refreshLocal` (regression in 2026-09)Có thể đã có người làm @FlorianKroiss đã nhận hôm nay. Đang mởbug regression Windows
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
eclipse-platform/eclipse.platform#3024 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-platform/eclipse.platform
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
NationalSecurityAgency/ghidra#9884 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Status: Pending Review Type: Feature Request
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
OpenRefine/OpenRefine#8019 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`timer` rule rejects dates the engine acceptsCó thể đã có người làm @MFA-G đã nhận hôm nay. Đang mởbug ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
camunda/bpmnlint-plugin-camunda-compat#281 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status: waiting-for-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100