Using diffstat with subversion?

2019-04-25 02:25发布

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.

NOTE: Linux commandline examples are OK ;)

1条回答
手持菜刀,她持情操
2楼-- · 2019-04-25 03:11

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
查看更多
登录 后发表回答