1 Patches can be generated using the 'svn diff' utility if the changes are
\r
2 limited to a single branch in the svn tree. However, to generate a patch
\r
3 by comparing two branches using a 'diff' program (e.g. GnuWin32 'diff'),
\r
4 the following syntax will help produce patches that are more easily
\r
7 diff -up -r -X trunk\docs\dontdiff.txt -I \$Id: old_path new_path
\r
9 For full diff syntax information, see the diff documentation, but as a summary:
\r
11 -u provides a unified diff (includes lines around changed lines for context)
\r
12 p lists the C function name containing the diff
\r
13 -r does a recursive diff (use when old_path and new_path are directories)
\r
14 -X excludes files listed in docs\dontdiff from the diff
\r
15 -I ignores diffs caused by the SVN Id line
\r
17 Patches generated using this method can be applied by using a 'patch' program,
\r
18 such as GnuWin32 'patch'.