解决方法:
1、下载GNU diff工具,注意安装依赖包。
1.1 Install GNU diff (http://gnuwin32.sourceforge.net/packages/diffutils.htm).
1.2 create a bat file (mydiff.bat) with the following content:
@echo off
<full path of the diff.exe installed in step 1> -U9999999 -L %3 -L %5 %6 %7
2、修改svn配置文件,路径:%appdata%\subversion\config,
In the SVN config file, add/edit the line:
diff-cmd = <full path of mydiff.bat>
3、现在再执行arc diff,就能显示上下文了。
本文介绍了如何在Windows环境下为Subversion(SVN)配置自定义的diff工具——GNUdiff,以显示更多上下文。首先,你需要下载并安装GNUdiff,然后创建一个批处理文件(mydiff.bat),将diff.exe路径填入。接着,在%appdata%subversionconfig文件中添加diff-cmd配置,指定刚创建的bat文件路径。完成这些步骤后,使用svn diff命令,即可看到详细的上下文比较。
2825

被折叠的 条评论
为什么被折叠?



