|
|
(40 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>
| |
| | |
| <graphviz>
| |
| digraph G {
| |
| rankdir=TB;
| |
| node [shape=plaintext];
| |
| | |
| "2" [label="2\nProud version\nBump when you are\nproud of the release", fontsize=14];
| |
| "7" [label="7\nDefault version\nJust normal/okay\nreleases", fontsize=14];
| |
| "123" [label="123\nShame version\nBump when fixing things\ntoo embarrassing to admit", fontsize=14];
| |
| | |
| "Pride versioning" [shape=none, fontsize=18, label="Pride versioning"];
| |
| | |
| "Pride versioning" -> "2";
| |
| "Pride versioning" -> "7";
| |
| "Pride versioning" -> "123";
| |
| }
| |
| </graphviz>
| |
Latest revision as of 09:07, 17 January 2025
在各类代码阅读过程中,diff 结果可谓至关重要。本图讲述怎样读懂 diff 后生成的结果。其中 git diff 形式是最应该引起注意的。