Re: Stats for a file.
From: Mark Reibert <svn_at_reibert.com>
Date: Wed, 12 Mar 2008 21:51:49 -0700
On Wed, 2008-03-12 at 11:34 -0400, Paul Koning wrote:
I believe that will double (or more) your "changed line" count. I think
diff --side-by-side --suppress-common-lines <foo> <bar> | wc -l
would get a more accurate changed line count. The trick is getting this
svn diff --diff-cmd mydiff | egrep -v '^Index:|=+$' | wc -l
where mydiff is the following two-line script:
shift 1
(The "shift 1" gets rid of the "-u" argument, which conflicts with
-- ---------------------- Mark S. Reibert, Ph.D. svn_at_reibert.com ---------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org For additional commands, e-mail: users-help_at_subversion.tigris.orgReceived on 2008-03-13 05:52:10 CET |
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.