Linux-diff and patch command making code patches tutorial
Linux-diff command can compare two different files and two directory differences to generate patch files
-R is a recursive option that sets this option, and diff will compare all of the corresponding files in the two different versions of the source code directory, including the subdirectory files.
The-n option ensures that the patch file will correctly handle the case where the file has been created or deleted.
The-u option creates a patch file in a uniform format that is more compact than the default format.
Diff-urn old/new/> Foo.patch
Linux-patch command to apply a patch file to another program directory
-P0 option to find the destination file (clip) from the current directory
-P1 option to ignore the first level of the directory, starting from the current directory to find.
Patch-p0 < Foo.patch
If we are in the process of developing the code to modify the bug or something, can be patched to save the form, and do not need to maintain a modified large source ...
Code Patch production Record