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

Re: svn diff --no-diff-added

From: David Glasser <glasser_at_davidglasser.net>
Date: 2007-11-03 01:31:15 CET

On 11/2/07, Karl Fogel <kfogel@red-bean.com> wrote:
> Trevor Harmon <trevor@vocaro.com> writes:
> > I'm interested in adding support for a --no-diff-added parameter to
> > the svn client. This would be a complement to the existing --no-diff-
> > deleted parameter, which prevents Subversion from printing
> > differences for deleted files. It's strange that --no-diff-deleted is
> > supported while --no-diff-added was left out. I'm certainly not the
> > first person to desire it [2] [3].
> >
> > I was about to put together a patch, but then I was told that the
> > lack of --no-diff-added may be deliberate. Is this true? What's the
> > reason for its absence? Thanks,
> The answer might be somewhere in this list's archives. ISTR that it
> was something like:
> "If a file was deleted, it might be not interesting to see all the
> lines that went away, since they're gone now -- so we should
> support --no-diff-deleted in 'svn'. But if a file is added, you
> usually want to see all the new lines, because they exist now, so
> --no-diff-added would be less useful."
> While this convinces me that --no-diff-added is usually less useful
> than --no-diff-deleted, that doesn't mean never useful, and I'd be
> happy to see a patch adding that option.
> You'll want to read http://subversion.tigris.org/hacking.html
> and especially http://subversion.tigris.org/hacking.html#patches.

The reason that I have often found diffs for added files to be
superfluous is that for a rename you're seeing the new lines as if
they are new, not copied; often I wish for an option that says "diff
copied files against the copy source".


David Glasser | glasser_at_davidglasser.net | http://www.davidglasser.net/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 3 01:37:25 2007

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

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