How to read diff result: Difference between revisions

From 清冽之泉
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
<graphviz>
在各类代码阅读过程中,diff 结果可谓至关重要。本图讲述怎样读懂 diff 后生成的结果。其中 git diff 形式是最应该引起注意的。
graph {
randir = LR;


5c7 [shape=record, label="{<1> 5 | <2> c | <3> 7}"]
[[File:读懂 diff 20250117.png|1200px]]
5c7:1 -- 第几行有变动
5c7:2 -- 具体变动
5c7:3 -- 变动后是第几行
 
}
</graphviz>

Latest revision as of 09:07, 17 January 2025

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