blublu

blublu

V2EX member #169352, joined on 2016-04-20 12:34:43 +08:00
Per blublu's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
blublu's recent replies
Dec 31, 2024
Replied to a topic by freesun165 git 求助 git 自动 merge 丢代码
因为你 feat A 和 master 的 base 点( b1 )并没有 line 70 ,当你把 feat A 向 master 进行 merge 并且用 squash 方式时,新的 merge 点有了 line 70 ,记为 m1 ,当在 feat B 删掉 line70 时,和 base 点(与前面 feat A 与 master 的 base 点一样( b1 ),因为用的是 squash ,所以这个 base 点并不是 feat A 中 co 到 feat B 的那个节点)的对比中,并不会出现 line70 的变更,因为和 feat A 增加的那一行已经抵消掉了,因此会把 m1 与 b1 对比中增加的 line70 加入到 featB 中新的 merge 点 m2

不知道我这样说你清楚了么?不清楚可以再多读几遍,应该解释了整个变更过程了
玩了一下完成度还比较高,已 star ,万一以后用上了呢
Latex
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5898 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 02:39 · PVG 10:39 · LAX 19:39 · JFK 22:39
♥ Do have faith in what you're doing.