Posts Tagged ‘diff’

Recursive diff: which files were changed?

Tuesday, July 15th, 2008

Here’s how to tell which files were changed between two directories, if you don’t need to know the details of the differences:

diff -Bbrq folder1 folder2

-B = Ignore changes that just insert or delete blank lines.
-b = Ignore changes in amount of white space.
-r = When comparing directories, recursively compare any subdirectories found.
-q = Report only whether the files differ, not the details of the differences.

It comes out handy to compare two directories checked out of SVN (for instance the prod folder and the staging folder).