[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: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-11-02 23:23:56 CET

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.

Best,
-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 3 00:13:38 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.