In order to create a patch, type:
svngit diff > AVRO-1234.patch
This will report all modifications done on Avro sources on your local disk and save them into the
AVRO-1234.patch file. Read the patch file.
Make sure it includes ONLY the modifications required to fix a single issue.
- try to adhere to the coding style of files you edit;
- comment code whose function or rationale is not obvious;
- update documentation (e.g.,
package.htmlfiles, this wiki, etc.)
- name the patch file after the JIRA –
If you need to rename files in your patch:
- Write a shell script that uses 'svn mv' to rename the original files.
- Edit files as needed (e.g., to change package names).
- Create a patch file with '
svn diff --no-diff-deleted --notice-ancestry'.
- Submit both the shell script and the patch file.
This way other developers can preview your change by running the script and then applying the patch.
Applying a patch
To apply a patch either you generated or found from JIRA, you can issue