1 .\" $NetBSD: merge.1,v 1.5 2002/02/08 01:26:51 ross Exp $
7 .\" Id: merge.1,v 5.7 1995/06/01 16:23:43 eggert Exp
10 merge \- three-way file merge
16 .I "file1 file2 file3"
19 incorporates all changes that lead from
25 The result ordinarily goes into
28 is useful for combining separate changes to an original. Suppose
30 is the original, and both
38 combines both changes.
40 A conflict occurs if both
44 have changes in a common segment of lines.
45 If a conflict is found,
47 normally outputs a warning and brackets the conflict with
48 .B \*[Lt]\*[Lt]\*[Lt]\*[Lt]\*[Lt]\*[Lt]\*[Lt]
50 .B \*[Gt]\*[Gt]\*[Gt]\*[Gt]\*[Gt]\*[Gt]\*[Gt]
52 A typical conflict will look like this:
56 .BI \*[Lt]\*[Lt]\*[Lt]\*[Lt]\*[Lt]\*[Lt]\*[Lt] " file A"
60 .BI \*[Gt]\*[Gt]\*[Gt]\*[Gt]\*[Gt]\*[Gt]\*[Gt] " file B"
64 If there are conflicts, the user should edit the result and delete one of the
69 Output conflicts using the
75 This merges all changes leading from
81 and generates the most verbose output.
84 These options specify conflict styles that generate less information
95 does not warn about conflicts.
98 This option may be given up to three times, and specifies labels
99 to be used in place of the corresponding file names in conflict reports.
101 .B "merge\ \-L\ x\ \-L\ y\ \-L\ z\ a\ b\ c"
102 generates output that looks like it came from files
107 instead of from files
114 Send results to standard output instead of overwriting
118 Quiet; do not warn about conflicts.
121 Print version number.
123 Exit status is 0 for no conflicts, 1 for some conflicts, 2 for trouble.
125 Author: Walter F. Tichy.
127 Manual Page Revision: \*(Rv; Release Date: \*(Dt.
129 Copyright \(co 1982, 1988, 1989 Walter F. Tichy.
131 Copyright \(co 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert.
133 diff3(1), diff(1), rcsmerge(1), co(1).
135 It normally does not make sense to merge binary files as if they were text, but
137 tries to do it anyway.