tkdiff 如何忽略行结尾
在unix平台上使用tkdiff,我尝试将首选项窗口中的空白选项修改为-w
或-b
,这两者似乎都没有忽略回车符差异(unix /pc.)
-w
从命令行使用 diff。
任何想法将不胜感激。
Using tkdiff on unix platform, I've tried modifying whitespace option in the preferences window to be -w
or -b
, neither of which seem to ignore carriage return differences (unix/pc.)
-w
works with diff from the command line.
Any thoughts would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有同样的问题,谷歌搜索让我来到这里,答案对我没有帮助。 tkdiff 在内部使用 diff 进行比较,因此花了几分钟尝试所有选项,包括 --strip-trailing-cr ,但这没有帮助。
这是有效的选项 -
使用
-B
和-w
使 tkdiff 忽略所有空格,包括空行。tkdiff -w -B
Had the same problem, google search landed me here, and answer didn't help me. tkdiff uses diff internally for diffing, so spent few minutes trying all options including --strip-trailing-cr which doesn't help.
Here is options that works -
use
-B
along with-w
to make tkdiff ignore all white spaces including blank lines.tkdiff -w -B
如果您有 GNU diff,则可以使用
--strip-trailing-cr
选项。我不知道如何告诉 tkdiff 使用该选项。If you have GNU diff, you can use the
--strip-trailing-cr
option. I don't know how to tell tkdiff to use that option.