How to diff just the source files?

Posted by Kimvais on Stack Overflow See other posts from Stack Overflow or by Kimvais
Published on 2010-04-20T08:16:03Z Indexed on 2010/04/20 8:23 UTC
Read the original article Hit count: 239

Filed under:
|

I have two almost similar source code trees, but do not have access to the source code repository so I am stuck with release packages that contain also test reports, documentation, binaries etc.

the diff command only support --exclude, but I would like to do something like diff -wbur --include='*.c,*.h' tree1 tree2

I know that this question is somewhat related, but does not really address my issue.

Bonus points for ignoring change blocks that are completely in C comments :)

© Stack Overflow or respective owner

Related posts about c

    Related posts about diff