Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 unix 平台上使用 tkdiff ,我尝试将首选项窗口中的空白选项修改为-wor -b,这两者似乎都没有忽略回车差异(unix/pc。)
-w
-b
-w从命令行使用 diff 。
任何想法将不胜感激。
有同样的问题,谷歌搜索把我带到了这里,答案对我没有帮助。tkdiff 在内部使用 diff 进行差异化,因此花了几分钟尝试所有选项,包括 --strip-trailing-cr 无济于事。
这是有效的选项 --B与 一起使用-w以使 tkdiff 忽略所有空格,包括空行。
-B
tkdiff -w -B
如果你有 GNU diff,你可以使用这个--strip-trailing-cr选项。我不知道如何告诉 tkdiff 使用该选项。
--strip-trailing-cr