Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to generate a recursive unified diff that excludes files that are not in the new version?

$ ls a
a
b
$ ls b
b
c
$ diff --no-delete a b
diff -Naur a/b b/b
--- a/b
+++ b/b
+ file b
- some changes
diff -Naur a/c b/c
--- a/c
+++ b/c
+ add file c

In this example it will not generate

- file a
- completely
- erased 
share|improve this question
Simply filter out the messages you don't want to see with grep ;-) – user86064 Oct 17 '12 at 14:04

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.