本文介绍了使用diffstat与subversion?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以给我一些例子,如何使用diffstat与subversion?

Could anyone give me examples, how I could use diffstat with subversion?

我的意思是,使用来分析和生成一个或多个提交的统计信息。

I mean, using diffstat to analyze and produce statistics about one or multiple commits.

em>注意:Linux命令行示例是OK;)

NOTE: Linux commandline examples are OK ;)

推荐答案

您可以简单地管道任何diff到diffstat。例如,如果您想要在特定修订中所做的更改的统计信息,则只需从svn检索该更改并将其传递给diffstat。

You can simply pipe any diff to diffstat. For example, if you want a stat of the changes made in a specific revision, just retrieve that change from svn and pipe it to diffstat.

$ svn diff -r1234:1235 | diffstat

你可以显式管道任何东西,svn可以创建diffs,其中包括分支之间的差异,标签和文件夹以及修订范围。

You can obviously pipe anything in that svn can create diffs of, which includes diffs between branches, tags and folders and also ranges of revisions.

$ svn diff svn://server/trunk svn://server/tags/tag1 | diffstat
$ svn diff -r 1000:2000 svn://server/trunk/file1 | diffstat

这篇关于使用diffstat与subversion?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 11:06