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 72 73 74 75 76 77 78 79 80 81 82
|
.\"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 "FILTERDIFF" 1 "31 Jan 2002" "patchutils" ""
.SH NAME
filterdiff \- extract or exclude diffs from a diff file
.SH "SYNOPSIS"
.nf
\fBfilterdiff\fR [-i \fIPATTERN\fR] [-x \fIPATTERN\fR] [-z] [\fIfile\fR...]
.fi
.nf
\fBfilterdiff\fR {--help | --version | --list | --grep ...}
.fi
.SH "DESCRIPTION"
.PP
You can use filterdiff to obtain a patch that applies to files matching the shell wildcard \fIPATTERN\fR from a larger collection of patches. For example, to see the patches in \fIpatch-2.4.3.gz\fR that apply to all files called \fIlp.c\fR:
.IP
.nf
filterdiff -z -i '*/lp.c' patch-2.4.3.gz
.fi
.PP
You can use both unified and context format diffs with this program.
.SH "OPTIONS"
.TP
\fB-i\fR \fIPATTERN\fR
Include only files matching \fIPATTERN\fR.
.TP
\fB-x\fR \fIPATTERN\fR
Exclude files matching \fIPATTERN\fR.
.TP
\fB-z\fR
Decompress files with extensions .gz and .bz2.
.TP
\fB--help\fR
Display a short usage message.
.TP
\fB--version\fR
Display the version number of filterdiff.
.TP
\fB--list\fR
Behave like \fBlsdiff\fR(1) instead.
.TP
\fB--grep\fR
Behave like \fBgrepdiff\fR(1) instead.
.SH "SEE ALSO"
.PP
\fBlsdiff\fR(1), \fBgrepdiff\fR(1)
.SH AUTHOR
Tim Waugh <twaugh@redhat.com>.
|