Differences between revisions 3 and 7 (spanning 4 versions)
Revision 3 as of 2006-12-30 22:56:10
Size: 652
Comment: Slight editing on UnifiedDiff (which I'm also about to improve too).
Revision 7 as of 2012-05-13 10:04:02
Size: 659
Editor: 62
Comment: Cleanup
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
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. 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.
Line 5: Line 5:
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. These files are also called diffs, as they were traditionally generated by the '`diff`' program. While there are many different formats for patch files, the most common is the [[UnifiedDiff|unified diff]] format.
Line 7: Line 7:
Mercurial will generate patch files for you, in the ["UnifiedDiff"] format, with the ''hg diff'' command. Mercurial can generate patch files in the unified diff format with the [[Cmd:diff | hg diff]] command.

----
CategoryGlossary

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, as they were traditionally generated by the 'diff' program. While there are many different formats for patch files, the most common is the unified diff format.

Mercurial can generate patch files in the unified diff format with the hg diff command.


CategoryGlossary

PatchFile (last edited 2012-05-13 10:04:02 by 62)