Skip to content

Conversation

gadfly3173
Copy link
Contributor

vscode:
image

new:
image

old:
image

@love-linger
Copy link
Collaborator

这是有意为之。SourceGit中高亮的设计目的是 - 提示仅有少量变更(即“仅修改了XXX”)。同时也是参考了Fork的设计理念。

  • 仅当同一变更块中的新增行数与删除行数相同时,计算行内差异
  • 当差异过多时,不再高亮显示

这样,不会造成视觉上,大片大片的颜色区块。而出现高亮区块时,多为单词或表达式,用于在变更很少的情况下,方便用户快速找出哪里不同。如果没有高亮区块,说明变化很明显,不需要用户特别注意。

@love-linger
Copy link
Collaborator

Github也是同样的处理方式

@gadfly3173 gadfly3173 closed this Apr 16, 2025
@gadfly3173 gadfly3173 deleted the fix/text-diff branch May 16, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants