【发布时间】:2019-03-07 10:12:02
【问题描述】:
我不确定发生了什么,但我只是将我的 diff 工具设置为由 git difftool 调用,但 difftool 遇到的第一个文件以标准 diff 方式显示 - 在控制台上逐行替换
diff --cc path/to/file.c
index ac1b99f,da29e2e..0000000
--- a/path/to/file.c
+++ b/path/to/file.c
@@@ -186,18 -133,20 +188,18 @@@
code code code code
more code more code more code
-- old code old code old code [displayed in red]
++ new code new code new code [displayed in green]
even more code even more code
yet more code yet more code
这似乎是 diff 的一种特殊情况,因为它具有 --cc 标志和三重 @ 符号 (@@@) 而不是双符号 (@@),最重要的是一个奇怪的描述有差异的修订:hash1,hash2..0000000.
这究竟是什么?我选择 Beyond Compare 作为我的差异工具,它可以处理这些情况吗?如果没有,其他人可以这样做吗?
【问题讨论】:
标签: git git-difftool