Using diffstat with subversion?

ぐ巨炮叔叔 提交于 2019-12-22 04:51:55

问题


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:


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


来源:https://stackoverflow.com/questions/1580291/using-diffstat-with-subversion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!