diff and patch are GNU project's programs, while role of the first program is to create file diffs, which express the diffrence between two source code files and the second is to using diffs to create source code patches in an automatic fashion.
总结:待续!