Difference between revisions of "Diff"

From NetHackWiki
Jump to navigation Jump to search
(first stub info)
 
(See Also: Adding a link to Patching for those who want to know how to use their diff files once they've got them)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
{{man|diff}}
 +
 
'''diff''' is a program that creates specially formed [[patch]] files.  It compares two files, and outputs the differences in a format that can be used to recreate one of the files from the other. (These special files are called either [[patching|patch-files]] or diff-files.)
 
'''diff''' is a program that creates specially formed [[patch]] files.  It compares two files, and outputs the differences in a format that can be used to recreate one of the files from the other. (These special files are called either [[patching|patch-files]] or diff-files.)
  
 
The usual invocation of the program is something like this:
 
The usual invocation of the program is something like this:
 
  diff -Nurd original-nethack-dir/ changed-nethack-dir/
 
  diff -Nurd original-nethack-dir/ changed-nethack-dir/
 +
 +
== See Also ==
 +
<!-- For instructions on using a diff file once you acquire one -->
 +
* [[Patching]]
  
 
{{Stub}}
 
{{Stub}}
 
[[Category:Patches| ]]
 
[[Category:Patches| ]]
 
[[Category:Development]]
 
[[Category:Development]]

Latest revision as of 16:47, 19 October 2014

diff is a program that creates specially formed patch files. It compares two files, and outputs the differences in a format that can be used to recreate one of the files from the other. (These special files are called either patch-files or diff-files.)

The usual invocation of the program is something like this:

diff -Nurd original-nethack-dir/ changed-nethack-dir/

See Also

This page is a stub. Should you wish to do so, you can contribute by expanding this page.