.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "IMEDIFF2" 1 "2006-03-10" "" "" .SH NAME imediff2 \- An interactive fullscreen 2-way merge tool .SH "SYNOPSIS" .ad l .hy 0 .HP 9 \fBimediff2\fR [\fB\-m\fR] [\fB\-u\fR] [\fB\-a\fR] [\fB\-b\fR] [\fB\-c\fR] [\fB\-N\ \fInew\-file\fR\fR] [\fB\-o\ \fIoutputfile\fR\fR] {\fIfile1\fR} {\fIfile2\fR} .ad .hy .SH "DESCRIPTION" .PP Merge two (slightly different) files interactively with a user friendly fullscreen interface in text mode\&. .PP Imediff2 shows the differences of given two files (in color if the terminal supports them), lets you scroll the file and toggle changes between old and new version one by one\&. If the 'unresolved' mode is enabled, you can optionally save both versions\&. .PP Additionally, if the \fI$EDITOR\fR environment variable is set or if \fB/usr/bin/editor\fR exists and is executable, you can also launch an external editor and manually edit the half\-merged file before saving it, perhaps to resolve the 'unresolved' parts\&. .PP Empty lines are shown in reverse colors so you see that you can select them\&. If a line is missing completely from one file, imediff2 displays it as a reversed '?'\&. While it seems to take one line in the editing phase, it is naturally not saved into the output file\&. .PP To see a list of keyboard commands, hit h or ? in the editor\&. .PP The program exits with status 0 if the changes were saved, 1 if the merging was aborted and 2 if the parameters were invalid\&. .SH "OPTIONS" .TP \fB\-o \fIoutputfile\fR\fR, \fB\-\-output=\fIoutputfile\fR\fR Write output to given file\&. If missing, changes will not be saved\&. .TP \fB\-N\fR, \fB\-\-new\-file\fR Treat absent files as empty\&. .TP \fB\-m\fR, \fB\-\-mono\fR Force monochrome display\&. .TP \fB\-u\fR, \fB\-\-unresolved\fR Enable 'unresolved' mode (see above)\&. .TP \fB\-a\fR Start with version A (default)\&. .TP \fB\-b\fR Start with version B\&. .TP \fB\-c\fR Start with unresolved changes (implies \-u)\&. .TP \fB\-h\fR, \fB\-\-help\fR Show summary of options and exit\&. .TP \fB\-V\fR, \fB\-\-version\fR Show version and exit\&. .SH "KEYBOARD COMMANDS" .PP The following keyboard commands are available in the editor\&. .TP h, ? Show commands\&. .TP up, down, left, right Move in document\&. .TP page up, page down Move a screenfull\&. .TP enter Toggle selected change\&. .TP n, tab, space Jump to next change\&. .TP p Jump to previous change\&. .TP a Set current chunk to version A\&. .TP b Set current chunk to version B\&. .TP u Set current chunk to unresolved\&. .TP shift+a Set all changes to version A\&. .TP shift+b Set all changes to version B\&. .TP shift+u Set all changes to unresolved\&. .TP e Launch external editor\&. .TP r Discard editor\-made changes\&. (Available only after e\&.) .TP x, s Save and exit\&. .TP q, ctrl+c Exit without saving\&. .TP home, end Jump to start or end\&. .SH "SEE ALSO" .PP sdiff (1), diff (1), merge (1), diff3 (1)\&. .SH "COPYRIGHT" .PP This manual page as well as the program itself was written by Jarno Elonen ()\&. Unlike the program itself, which is licensed under the GNU General Public License (GPL) version 2 (or any later version, at your option), this document has been placed into the Public Domain\&. .SH AUTHOR Jarno Elonen.