the Subversion svn command has built in diff functionality but it is more limited than GNU diff. It doesn’t allow you to use the ‘-q’ option to “Report only whether the files differ, not the details of the differences.” Luckily, svn allows you to specify an external “diff” command and then pass it arguments. Use the following command to list only files with local modifications and changes within a subversion checkout.svn diff --diff-cmd "diff" -x "-q" . | grep Index | cut -d " " -f 2
10、比较差异
svn diff path(将修改的文件与基础版本比较)
例如:svn diff test.php
svn diff -r m:n path(对版本m和版本n比较差异)
例如:svn diff -r 200:201 test.php
简写:svn di

本文介绍如何使用SVN内置的差异比较功能,并通过指定外部diff命令来增强比较能力,包括仅列出本地修改文件及版本间差异的方法。
390

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



