Creating a Patch
[edit] How to create a patch against the MySQL server source code
- Patches should made against the most current version of the sources.
- Create a local clone of the MySQL server BK source tree or download a recent source snapshot
- Keep a clean backup copy of the resulting source directory tree (or keep the source tarball you used for extracting)
- Apply your changes/make the required modifications to your working copy of the source tree
- Test your changes!
- Create a unified diff against the unmodified tree by using the following command:
diff -urN <original source tree> <modified source tree> > filename.patch
- The resulting patch file could then be used to discuss your changes with the developers on the internals mailing list or for attaching it to your patch contribution report