minix/minix/man/man1/cdiff.1

38 lines
675 B
Groff
Raw Normal View History

2005-05-02 15:01:42 +02:00
.TH CDIFF 1
.SH NAME
cdiff \- context diff
.SH SYNOPSIS
\fBcdiff\fR [\fB\-c\fIn\fR] \fIoldfile \fInewfile\fR
.br
.de FL
.TP
\\fB\\$1\\fR
\\$2
..
.de EX
.TP 20
\\fB\\$1\\fR
# \\$2
..
.SH OPTIONS
2012-03-31 23:44:29 +02:00
.TP 5
.B \-c
# Provide \fIn\fR lines of context
2005-05-02 15:01:42 +02:00
.SH EXAMPLES
2012-03-31 23:44:29 +02:00
.TP 20
.B cdiff old new >f
# Write context diff on \fIf\fR
.TP 20
.B cdiff \-c1 old new >f
# Use only 1 line of context
2005-05-02 15:01:42 +02:00
.SH DESCRIPTION
.PP
\fICdiff\fR produces a context diff by first running \fIdiff\fR and then
adding context.
Some update programs, like \fIpatch\fR, can use context diffs to update
files, even in the presence of other, independent changes.
.SH "SEE ALSO"
.BR cmp (1),
.BR diff (1),
.BR patch (1).