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.
如何找到两个 SVN 提交之间不同的行数?
喜欢修改,评论添加等。
有没有直接的命令可以做到这一点?
例如,版本 1 有 500 行,版本 2 有 650 行。然后输出将是:Difference: 150
Difference: 150
diffstat 做你想做的事:
svn diff -r[oldrev]:[newrev] | diffstat
例子:
$ svn diff | diffstat some_file.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-)