1
I'm trying to generate patches for a bunch of files I changed. I'm using Meld which does a great job of diff’ing the files in a nice visual manor, then it allows me to save and generate a patch file based on those changes.
The problem I have is that it's slow to do this one at a time. Is there a similar tool that I can use for batch work? I want it to recursively check all the files in two directories and generate all the patch files based on its findings.
I think you're right, I was not aware of the
-u
option fordiff
, that does make the formatting the same. How would I update that line to avoid certain files? For example any*.o
files that are in the directories. – Mike – 2012-12-05T14:33:34.110Use an --exclude={pattern} option. There are a number of options you may or may not want to use, I'd suggest reading through the man page to understand what's available. The diff program is actually quite powerful. – John – 2012-12-05T14:37:18.460