Repository navigation
Conversation
…-git-diff-20261021
…-git-diff-20261021
…-git-diff-20261021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Result / 用户结果
Native Git patches now show file headers, addition/deletion counts, paired old/new line numbers and individual file collapse. Bodies retain text selection and horizontal scrolling for long lines; copying the result preserves the original patch, including file headers and signs. Unsupported combined/binary patches, incomplete hunks and display limits fall back to retained raw output.
Git 差异增加文件头、增删计数、双列行号和逐文件折叠,保留文本选择、长行横向滚动与完整原文复制。无法可靠解释的格式回到原文显示。
This PR is stacked on #705. Counted source changes: 1,023.
Design / 设计边界
The bounded pure parser interprets captured output without running Git or accessing paths. Parsing uses the existing result-owned background task, with revision/eviction checks. Shared bodies and retained code entities keep parsing and text measurement off the stable hover path; gutters and backgrounds stay outside copied text.
Mouse activation moves focus away from the PTY, while keyboard activation retains the file button for repeated toggling. Floating tools leave the collapse hit area clear at the top of the viewport. The existing terminal remains the vertical-scroll owner.
Evidence / 验证依据
1e28847c. Exact-head CI is running; the preceding848991c9head passed its selected Linux native suite (run). Windows and macOS were not selected for that diff-only run, so their report checks do not represent native executions.Required Review / 必须确认