gpt4 book ai didi

git - interdiff 做 diff 做不到的是什么?

转载 作者:太空狗 更新时间:2023-10-29 13:47:01 24 4
gpt4 key购买 nike

如果我试图找到两个差异之间的差异,为什么我不能只diff 这两个差异?

I have tested diff diff1 diff2 and interdiff diff1 diff2 and have not found any difference in the output. In what case would they be different?

(我完全知道 interdiff 声明的目的是找到两个补丁之间的变化。)

最佳答案

Why use interdiff and not just simply diff two patches?

An interdiff tells you whether lines removed in the second patch were added in the first patch, and similarly, whether lines added in the second patch were removed in the first patch. Simply diffing the two commits does not provide this information, forcing the reviewer to consult the original patch or current source to determine whether this is the case.

来自 Drupal's handbook on Creating an interdiff

关于git - interdiff 做 diff 做不到的是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30603958/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com