|
From: | Bryce Nesbitt (mailing list account) |
Subject: | Re: diff -r option to ignore missing files |
Date: | Thu, 17 Nov 2005 10:40:27 -0800 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 |
Chuck Swiger wrote:
I should have said "as distinct from the -P option". -P makes each file appear as empty, so it shows every line as a difference.Bryce Nesbitt (mailing list account) wrote:This is a request for a new switch to diff -- "ignore files that don't exist" (e.g. suppress the "Only in" message).Why?Sometimes I build a sparse tree with only the files I've changed, and I want to diff it to the original.At least part of what you're asking for is available via: -P When comparing directories, if a file appears only in the second directory of the two, treat it as present but empty in the other.
The option I have proposed is just the opposite. Too bad -p is already used.
-Bryce
[Prev in Thread] | Current Thread | [Next in Thread] |