Unified diff
From Just Solve the File Format Problem
(Difference between revisions)
(Created page with "{{FormatInfo |subcat=Archiving |extensions={{ext|patch}}, {{ext|diff}} |released=1991 }} '''Unified diff''' (or '''diff unified format''', '''unified context diff''', '''unidi...") |
|||
Line 3: | Line 3: | ||
|extensions={{ext|patch}}, {{ext|diff}} | |extensions={{ext|patch}}, {{ext|diff}} | ||
|released=1991 | |released=1991 | ||
+ | |image=Unified diff.png | ||
+ | |caption=Unified diff example | ||
}} | }} | ||
'''Unified diff''' (or '''diff unified format''', '''unified context diff''', '''unidiff''') is a [[diff]] format commonly used for patch files. | '''Unified diff''' (or '''diff unified format''', '''unified context diff''', '''unidiff''') is a [[diff]] format commonly used for patch files. |
Revision as of 18:51, 8 June 2015
Unified diff (or diff unified format, unified context diff, unidiff) is a diff format commonly used for patch files.
Contents |
Identification
Unlike other diff formats, Unified diff has lines that begin with "@@".
Specifications
- Unified Diff Format - Ad-hoc specification by Guido van Rossum
- GNU Diffutilis manual: Detailed Description of Unified Format
Software
- GNU Diffutils:
diff
(with-u
option),patch
Sample files
Links
- Wikipedia: Diff has a section on Unified diff