The first thing to do is to enable the Contributor and Developer blocks in your Drupal.org profile.
My account > Edit > Contributor link / Developer link
Patches are pieces of code that solve an issue either in Drupal core or a contributed module. Patches describe the changes between a before and after state of either a module or core.
Patches include only the exact changes that were made.
More about Drupal patches
- Create a working copy of the file (example.module copied to exampleNew.module) you are editing in the same directory as the original.
- Edit the working copy (exampleNew.module) and save it.
- Enter the command: diff -up /path/to/file/example.module path/to/file/exampleNew.module > mypatchname.patch.
- You can attach file mypatchname.patch in a Drupal project's issue thread.
- Search the issue queue, because maybe someone else already made a patch.
- Always post against the most recent development version.
- The code must be close to coding standards.
- Describe the changes
- Name your patch: For example module-description-issue#comment#.patch
- Verify your patch
- Submit your patch through a bug report or feature request.