[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: feature idea: diff summary on commit

From: Wesley J. Landaker <wjl_at_icecavern.net>
Date: 2007-04-08 00:48:11 CEST

On Friday 06 April 2007 17:00, Erik Uzureau wrote:
> I know this is totally out of left field, but every time I do an "svn
> commit" I always
> wonder what are the net changes I'm making to the code base. Am I adding
> lines or eliminating them?
>
> Of course, this is mostly just because I get great joy out of cleaning
> up a bunch
> of code, rewriting it to be smaller. If the commit would tell me "Your
> commit reduced
> the code base by X lines" that would be awesome.
>
> I assume I'm probably quite alone on this one, but my teachers always
> said the only stupid question is the one you don't ask. Maybe someone
> else would like this too.

You can always just do something like:

$ svn diff | diffstat

See <http://freshmeat.net/projects/diffstat/> for that one. There are other
similar programs that do analysis based on unified diff output.

-- 
Wesley J. Landaker <wjl@icecavern.net> <xmpp:wjl@icecavern.net>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2

  • application/pgp-signature attachment: stored
Received on Sun Apr 8 00:48:40 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.