File: unwrapdiff.1

package info (click to toggle)
patchutils 0.2.31-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,384 kB
  • ctags: 261
  • sloc: sh: 6,195; ansic: 5,749; xml: 1,971; perl: 398; makefile: 367
file content (71 lines) | stat: -rw-r--r-- 1,773 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
.\"Generated by db2man.xsl. Don't modify this, modify the source.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "UNWRAPDIFF" 1 "17 January 2003" "patchutils" ""
.SH NAME
unwrapdiff \- demangle word-wrapped patches
.SH "SYNOPSIS"
.ad l
.hy 0
.HP 11
\fBunwrapdiff\fR [\-v] [\fIfile\fR...]
.ad
.hy
.ad l
.hy 0
.HP 11
\fBunwrapdiff\fR {\fB\-\-help\fR | \fB\-\-version\fR}
.ad
.hy

.SH "DESCRIPTION"

.PP
\fBunwrapdiff\fR demangles patches that have been word\-wrapped, in an attempt to make them useful\&.

.PP
The corrected diff is sent to standard output\&. Note that you will probably need to use the \fB\-l\fR option when applying the patch, in order to ignore any whitespace differences there may be\&.

.SH "OPTIONS"

.TP
\fB\-v\fR
Verbose operation\&. A list of lines that are modified in a way that might be wrong is sent to stderr\&.

.TP
\fB\-\-help\fR
Display a short usage message\&.

.TP
\fB\-\-version\fR
Display the version number of unwrapdiff\&.

.SH "LIMITATIONS"

.PP
Some heuristics are used to decide whether use a space to recombine a wrapped line, or just join them together\&. Currently this is done by comparing with last three characters of a line with the first two characters of its continuation, and using a space of any of them are different\&.

.PP
The patch needs to have been valid before being word\-wrapped\&.

.PP
The last line of a hunk is nearly always ambiguous\&. If the next line begins ``@@'', ``Index:\~'', ``diff\~'' or ``\-\-\-\~'' then it is taken to be complete; otherwise it is unwrapped using the next line\&.

.SH AUTHOR
Tim Waugh <twaugh@redhat\&.com>.