1UNWRAPDIFF(1) Man pages UNWRAPDIFF(1)
2
3
4
6 unwrapdiff - demangle word-wrapped patches
7
9 unwrapdiff [-v] [file...]
10
11 unwrapdiff {[--help] [--version]}
12
14 unwrapdiff demangles patches that have been word-wrapped, in an attempt
15 to make them useful.
16
17 The corrected diff is sent to standard output. Note that you will
18 probably need to use the -l option when applying the patch, in order to
19 ignore any whitespace differences there may be.
20
22 -v Verbose operation. A list of lines that are modified in a way
23 that might be wrong is sent to stderr.
24
25 --help Display a short usage message.
26
27 --version
28 Display the version number of unwrapdiff.
29
31 Some heuristics are used to decide whether use a space to recombine a
32 wrapped line, or just join them together. Currently this is done by
33 comparing with last three characters of a line with the first two
34 characters of its continuation, and using a space of any of them are
35 different.
36
37 The patch needs to have been valid before being word-wrapped.
38
39 The last line of a hunk is nearly always ambiguous. If the next line
40 begins “@@”, “Index: ”, “diff ” or “--- ” then it is taken to be
41 complete; otherwise it is unwrapped using the next line.
42
44 Tim Waugh <twaugh@redhat.com>.
45
46
47
48patchutils 17 January 2003 UNWRAPDIFF(1)