User guide

4.13. diff (optional)
Diff is used to get a file of all differences between two source files/trees (sometimes called a patch).
The diff tool isn't needed for building Wireshark, but it's needed if you are going to commit your
changes back to the Wireshark community.
Note!
The recommended way to build patches is using the Subversion client, see Sec-
tion 4.11, “Subversion (SVN) client (optional)” for details.
You will find more instructions in Section 3.9.2.3, “Using the diff tool” on how to use the diff tool.
4.13.1. UNIX or Win32 Cygwin: GNU diff
Diff is available for most of the UNIX-like platforms and as the diffutils package from the Cygwin
setup.
If GNU diff isn't already installed or available as a package for your platform, you can get it at: ht-
tp://www.gnu.org/software/diffutils/diffutils.html.
After correct installation, typing at the bash command line prompt:
$ diff --version
should result in something like:
diff (GNU diffutils) 2.8.7
Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
However, the version string may vary.
4.13.2. Win32 native: diff
A native Win32 diff package can be obtained from http://gnuwin32.sourceforge.net/. The installa-
tion should be straightforward.
The Subversion client TortoiseSVN has a built-in diff feature, see Section 4.12.2, “Win32 native:
TortoiseSVN”. It is currently unknown if this tool can be used to create diff files in the required
format, so other persons can use them.
Tool Reference
63