Reputation:
Does anyone know how to create a patch for WordPress plugin? I need to release the latest version of an existing plugin without making conflicts. I am new to this.
Thanks
Upvotes: 0
Views: 903
Reputation: 6650
Generally patch files are knows as diff files and they contains .diff extension. They are used to patch the difference between old and new file so that you can easily apply the patch.
Patch can be generated by several tools over several systems. Here is a document for that
I suggest you to use Mac/Linux Command Line ,
generate a diff file
svn diff filename.php > filename.diff
apply patch
patch -p0 < patch.diff
Upvotes: 1