summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/merge.1
blob: 7794d78594ae0d0c4886b9ee4d7ee40639e5a684 (plain)
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
83
84
85
86
87
88
89
90
91
.\"	$OpenBSD: merge.1,v 1.4 2018/06/07 11:37:21 jmc Exp $
.\"
.\" Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
.\" All rights reserved.
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.Dd $Mdocdate: June 7 2018 $
.Dt MERGE 1
.Os
.Sh NAME
.Nm merge
.Nd 3-way file merge
.Sh SYNOPSIS
.Nm
.Op Fl EepqV
.Op Fl L Ar label
.Ar file1 file2 file3
.Sh DESCRIPTION
The
.Nm
program merges changes leading from
.Ar file2
to
.Ar file3
into
.Ar file1 .
.Pp
The following options are supported:
.Bl -tag -width Ds
.It Fl E
Default merge:
see
.Xr diff3 1
for details.
.It Fl e
Same as
.Fl E
but does not warn about conflicts.
.It Fl L Ar label
Specifies labels to be used in place of corresponding file names
in conflict reports.
May be given up to three times.
.It Fl p
Print result to standard output.
.It Fl q
Be quiet about reporting.
.It Fl V
Print RCS's version number.
.El
.Sh EXIT STATUS
The
.Nm
utility exits with one of the following values:
.Pp
.Bl -tag -width Ds -compact -offset indent
.It 0
No overlaps.
.It 1
Overlaps were found.
.It 2
An error occurred.
.El
.Sh EXAMPLES
Using labels:
.Bd -literal -offset indent
$ merge -q -p -L one -L two -L three file1 file2 file3
<<<<<<< one
=======
bar
>>>>>>> three
.Ed
.Sh SEE ALSO
.Xr co 1 ,
.Xr diff 1 ,
.Xr diff3 1 ,
.Xr rcsmerge 1
.Sh STANDARDS
The flag
.Op Fl A
has no effect and is provided
for compatibility only.