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

Re: svn command for diffstat

From: Pavel Lyalyakin <pavel.lyalyakin_at_visualsvn.com>
Date: Thu, 14 Jul 2016 19:04:17 +0300

Hello Scott,

On Thu, Jul 14, 2016 at 6:29 PM, Scott Aron Bloom <scott_at_towel42.com> wrote:
>
> What is the best svn diff options to use to pipe into diffstat.
>
> Essentially, Im looking for the number of new lines, deleted lines and number of modified.
>
> My main problem is when a svn diff is performed on a directory copy, I don’t want those files counted as “added”

What about `--no-diff-added`[1] or `--notice-ancestry`[2] options?
Have you tried them? I guess that `svn diff`[3] has the options that
should help producing the required diff output, but I can't point to
the best ones for diffstat tool.

[1]: http://svnbook.red-bean.com/en/1.8/svn.ref.svn.html#svn.ref.svn.sw.no_diff_added
[2]: http://svnbook.red-bean.com/en/1.8/svn.ref.svn.html#svn.ref.svn.sw.notice_ancestry
[3]: http://svnbook.red-bean.com/en/1.8/svn.ref.svn.c.diff.html

--
With best regards,
Pavel Lyalyakin
VisualSVN Team
Received on 2016-07-14 18:05:15 CEST

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.