Last Updated: February 25, 2016
·
644
· karbassi

Useful diff

diff -wBr folder1 folder2 | diffstat
... will show the diffstat.

diff -wBr folder1 folder2 | view -
... will show the actual diff changes in a read-only vi environment.

`diff -wBr --exclude='.svn' --exclude='.git' folder1 folder2 | view -
... will show the actual diff changes in a read-only vi environment while excluding svn and git folders.

Learn something!

-w = Ignore all white space.
-B = Ignore changes whose lines are all blank.
-r = Recursively compare any subdirectories found.
--exclude='something' = Ignore 'something' from diff search.