Differences between revisions 5 and 6
Revision 5 as of 2008-01-13 16:29:31
Size: 687
Editor: abuehl
Comment: lowercase links, minor rewording
Revision 6 as of 2009-05-19 19:31:00
Size: 690
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
A '''[:Patch: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|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: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:unified diff] format. These files are also called ''"diffs"'', or ''a'' [[Diff|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|unified diff]] format.

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 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)