7

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 ;)

Rafe Kettler
  • 75,757
  • 21
  • 156
  • 151
java.is.for.desktop
  • 10,748
  • 12
  • 69
  • 103

1 Answers1

12

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
bluebrother
  • 8,636
  • 1
  • 20
  • 21