How do I create a patch to attach to a bug?

Created by Gavin Treadgold
Keywords:

To create a patch file use the following command:

diff -Naur old new > patch_file