This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / share / doc / ps1 / 13.rcs / man / merge.1
CommitLineData
78ed81a3 1.\" merge.1,v 1.2 1993/08/02 17:51:22 mycroft Exp -*- nroff -*-
15637ed4
RG
2.TH MERGE 1 6/29/83 "Purdue University"
3.SH NAME
4merge \- three-way file merge
5.SH SYNOPSIS
6\fBmerge\fR [ \fB-p\fR ] file1 file2 file3
7.SH DESCRIPTION
8.I Merge
9incorporates all changes that lead from \fIfile2\fR to \fIfile3\fR into
10\fIfile1\fR. The result goes to std. output if \fB-p\fR is present, into
11\fIfile1\fR otherwise. \fIMerge\fR is useful for combining separate changes
12to an original. Suppose \fIfile2\fR is the original, and both \fIfile1\fR
13and \fIfile3\fR are modifications of \fIfile2\fR. Then \fImerge\fR
14combines both changes.
15.PP
16An overlap occurs if both \fIfile1\fR and \fIfile3\fR
17have changes in a common segment of lines.
18\fIMerge\fR prints how many overlaps occurred, and includes both alternatives
19in the result. The alternatives are delimited as follows:
20.sp
21.nf
22 <<<<<<< file1
23 lines in file1
24 =======
25 lines in file3
26 >>>>>>> file3
27.fi
28.sp
29If there are overlaps, the user should edit the result and delete one of the
30alternatives.
31.SH IDENTIFICATION
32.de VL
33\\$2
34..
35Author: Walter F. Tichy,
36Purdue University, West Lafayette, IN, 47907.
37.sp 0
38Revision Number:
78ed81a3 39.VL 1.2
15637ed4 40; Release Date:
78ed81a3 41.VL 1993/08/02 17:51:22
15637ed4
RG
42\&.
43.sp 0
44Copyright \(co 1982 by Walter F. Tichy.
45.SH SEE ALSO
46diff3 (1), diff (1), rcsmerge (1), co (1).