How do you count the lines modified?

42 views
Skip to first unread message

silviojr

unread,
Jul 14, 2011, 2:20:27 PM7/14/11
to svnplot
I am trying to go through the code to find out how you count the lines
that were modified. I mean, standard svn diff will give you the number
of added lines and deleted lines, but not the number of modified
lines. How do you get to count them?

thanks in advance

Issam Jbara

unread,
Oct 22, 2013, 4:28:39 AM10/22/13
to svn...@googlegroups.com
Am interested in the same Inquiry, How can generate a summary that details per month the total number of Added/modified and deleted lines...this would be considered as a great improvement in this tool

Nitin Bhide

unread,
Oct 22, 2013, 9:32:00 AM10/22/13
to svn...@googlegroups.com
I use the following logic

1. For each file in each commit, track lines added, and lines deleted. The lines added and deleted are calculated from the svn diff.
2. The linecount for a line is sum(linesadded) - sum(linesdeleted) for all revisions of that file.

Regards,
Nitin


--
You received this message because you are subscribed to the Google Groups "svnplot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to svnplot+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
============================================
In theory, there is NO difference between theory and practice.
But, in practice, there IS

Yogi Berra
============================================
My company's new product : BootstrapToday - Simple and Sensible Application Lifecycle Management
http://www.bootstraptoday.com
Reply all
Reply to author
Forward
0 new messages