Size: 219
Comment:
|
Size: 652
Comment: Slight editing on UnifiedDiff (which I'm also about to improve too).
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
A ["Patch"] file is a file in the format generated by the ["Diff"] program. Patch files are usually shipped around in UnifiedDiff format, as generated with the "-u" option to the ''diff'' command. | A ["Patch"] file is a single file annotating the changes between two versions of one or more text files. By "applying" a patch, you can update a set of text files from an older version to a newer version. Developers often use patch files to make their changes available to other developers. These files are also called ''"diffs"'', or ''a'' ["Diff"], as they were traditionally generated by the ["Diff"] program. While there are many different formats for patch files, the most common is the ["UnifiedDiff"] format. Mercurial will generate patch files for you, in the ["UnifiedDiff"] format, with the ''hg diff'' command. |
Patch file
A ["Patch"] file is a single file annotating the changes between two versions of one or more text files. By "applying" a patch, you can update a set of text files from an older version to a newer version. Developers often use patch files to make their changes available to other developers.
These files are also called "diffs", or a ["Diff"], as they were traditionally generated by the ["Diff"] program. While there are many different formats for patch files, the most common is the ["UnifiedDiff"] format.
Mercurial will generate patch files for you, in the ["UnifiedDiff"] format, with the hg diff command.