Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ merge(1RCS) — UTek 4.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

co(1rcs)

diff(1)

diff3(1)

rcsmerge(1rcs)



MERGE(1RCS)             COMMAND REFERENCE             MERGE(1RCS)



NAME
     merge - three-way file merge

SYNOPSIS
     merge [ -p ] file1 file2 file3

DESCRIPTION
     Merge incorporates all changes that lead from file2 to file3
     into file1. The result goes to std. output if -p is present,
     into file1 otherwise. Merge is useful for combining separate
     changes to an original. Suppose file2 is the original, and
     both file1 and file3 are modifications of file2. Then merge
     combines both changes.

     An overlap occurs if both file1 and file3 have changes in a
     common segment of lines.  Merge prints how many overlaps
     occurred, and includes both alternatives in the result. The
     alternatives are delimited as follows:

          <<<<<<< file1
          lines in file1
          =======
          lines in file3
          >>>>>>> file3

     If there are overlaps, the user should edit the result and
     delete one of the alternatives.

OPTIONS
     -p merge sends its output to std. output.

EXAMPLES
     The following command incorporates into example.c the
     differences between the files old.example.c and
     newer.example.c.

          merge example.c old.example.c newer.example.c

FILES
/tmp/d3[abc]$$
                  Temporary storage for file pair differences

RETURN VALUE
     [NO_ERRS]      Command completed without error.

     [1]            An error of the type described in the error
                    message occurred.

SEE ALSO
     co(1rcs), diff(1), diff3(1), and rcsmerge(1rcs).





Printed 4/6/89                                                  1





































































%%index%%
na:336,80;
sy:416,196;
de:612,1254;
op:1866,196;
ex:2062,345;
fi:2407,154;
rv:2561,280;
se:2841,193;
%%index%%000000000134

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026