我向我的本地存储库添加了一些更改并运行 svn diff
,但是 diff
输出为空。
但是svn status
将我的文件标记为已修改。这是文件是外部项目,我该如何使用 diff
用这个命令?
最佳答案
这里引用自 the manual :
Besides the svn checkout, svn update, svn switch, and svn export commands which actually manage the disjoint (or disconnected) subdirectories into which externals are checked out, the svn status command also recognizes externals definitions. It displays a status code of X for the disjoint external subdirectories, and then recurses into those subdirectories to display the status of the external items themselves. You can pass the --ignore-externals option to any of these subcommands to disable externals definition processing.
从上面可以推断出只有提到的命令支持外部命令。
我不知道为什么会这样,但我的预感是正确设计相对困难,并且在功能列表中并不高。
关于svn diff 不显示修改后的外部文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11453041/