How to read diff result: Difference between revisions

From 清冽之泉
Jump to navigation Jump to search
No edit summary
No edit summary
 
(51 intermediate revisions by the same user not shown)
Line 1: Line 1:
<graphviz>
在各类代码阅读过程中,diff 结果可谓至关重要。本图讲述怎样读懂 diff 后生成的结果。其中 git diff 形式是最应该引起注意的。
graph {
 
node [shape=record]
[[File:读懂 diff 20250117.png|1200px]]
5c7 [{<left>5; <middle>c; <right>7}]
5c7:left -- 第几行有变动
5c7:middle -- 具体变动
5c7:right -- 变动后是第几行
}
</graphviz>

Latest revision as of 09:07, 17 January 2025

在各类代码阅读过程中,diff 结果可谓至关重要。本图讲述怎样读懂 diff 后生成的结果。其中 git diff 形式是最应该引起注意的。