Diff of directory statistics sumarry (git diff –stat like for non-git repo)

diff()

Is there a tool (or diff option combination) which would produce output similar to git diff --stat?

I have two kernel sources and I would like to get general idea of what was changed in them. Displaying all the changed lines is a overkill, I would like a simple

file_name1 <number of changes>
file_name2 <number of changes>
...

summary.

Best Answer

Yes, use Tom Dickey's diffstat:

diff -ur dir1 dir2 | diffstat

You can summarise any (well, most) diffs / patches with it, not just directory diffs.

Related Question