[BACK]Return to merge.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / rcs

File: [local] / src / usr.bin / rcs / merge.1 (download)

Revision 1.4, Thu Jun 7 11:37:21 2018 UTC (5 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, HEAD
Changes since 1.3: +12 -12 lines

add some EXIT STATUS sections; from matthew martin

.\"	$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.