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