开发者

Using diffstat with subversion?

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

I mean, using diffstat to analyze and produce statistics a开发者_JS百科bout one or multiple commits.

NOTE: Linux commandline examples are OK ;)


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

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜