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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
|
<!DOCTYPE refentry PUBLIC "-//Norman Walsh/DTD DocBk XML V4.1.2//EN"
"http://www.docbook.org/xml/4.1.2/docbookx.dtd" [
<!ENTITY dhfirstname "<firstname>Jarno</firstname>">
<!ENTITY dhsurname "<surname>Elonen</surname>">
<!ENTITY dhdate "<date>2006-03-10</date>">
<!ENTITY dhsection "<manvolnum>1</manvolnum>">
<!ENTITY dhemail "<email>elonen@iki.fi</email>">
<!ENTITY dhusername "elonen">
<!ENTITY dhucpackage "<refentrytitle>imediff2</refentrytitle>">
<!ENTITY dhpackage "imediff2">
<!ENTITY gnu "<acronym>GNU</acronym>">
]>
<refentry>
<refentryinfo>
<address>
&dhemail;
</address>
<author>
&dhfirstname;
&dhsurname;
</author>
<copyright>
<year>2003-2006</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
</refentryinfo>
<refmeta>
&dhucpackage;
&dhsection;
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>An interactive fullscreen 2-way merge tool</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dhpackage;</command>
<arg><option>-m</option></arg>
<arg><option>-u</option></arg>
<arg><option>-a</option></arg>
<arg><option>-b</option></arg>
<arg><option>-c</option></arg>
<arg><option>-N <replaceable>new-file</replaceable></option></arg>
<arg><option>-o <replaceable>outputfile</replaceable></option></arg>
<arg choice="req"><replaceable>file1</replaceable></arg>
<arg choice="req"><replaceable>file2</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para>Merge two (slightly different) files interactively with a user
friendly fullscreen interface in text mode.</para>
<para><application>Imediff2</application> 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.</para>
<para>Additionally, if the <varname>$EDITOR</varname>
environment variable is set or if <command>/usr/bin/editor</command> 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.</para>
<para>Empty lines are shown in reverse colors so you see that you can select
them. If a line is missing completely from one file, <application>imediff2</application>
displays it as a reversed '<guilabel>?</guilabel>'. While it seems to take one line in the
editing phase, it is naturally not saved into the output file.</para>
<para>To see a list of keyboard commands, hit <keycap>h</keycap> or <keycap>?</keycap> in
the editor.</para>
<para>The program exits with status 0 if the changes were saved, 1 if the merging
was aborted and 2 if the parameters were invalid.</para>
</refsect1>
<refsect1>
<title>OPTIONS</title>
<variablelist>
<varlistentry>
<term><option>-o <replaceable>outputfile</replaceable></option>, <option>--output=<replaceable>outputfile</replaceable></option></term>
<listitem>
<para>Write output to given file. If missing, changes will not be saved.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-N</option>, <option>--new-file</option></term>
<listitem>
<para>Treat absent files as empty.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-m</option>, <option>--mono</option></term>
<listitem>
<para>Force monochrome display.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-u</option>, <option>--unresolved</option></term>
<listitem>
<para>Enable 'unresolved' mode (see above).</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-a</option></term>
<listitem>
<para>Start with version A (default).</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-b</option></term>
<listitem>
<para>Start with version B.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-c</option></term>
<listitem>
<para>Start with unresolved changes (implies -u).</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-h</option>, <option>--help</option></term>
<listitem>
<para>Show summary of options and exit.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-V</option>, <option>--version</option></term>
<listitem>
<para>Show version and exit.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>KEYBOARD COMMANDS</title>
<para>The following keyboard commands are available in the editor.</para>
<variablelist>
<varlistentry>
<term><keysym>h</keysym>, <keysym>?</keysym></term>
<listitem>
<para>Show commands.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keycap>up</keycap>, <keycap>down</keycap>, <keycap>left</keycap>, <keycap>right</keycap></term>
<listitem>
<para>Move in document.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keycap>page up</keycap>, <keycap>page down</keycap></term>
<listitem>
<para>Move a screenfull.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keycap>enter</keycap></term>
<listitem>
<para>Toggle selected change.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keysym>n</keysym>, <keycap>tab</keycap>, <keycap>space</keycap></term>
<listitem>
<para>Jump to next change.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keysym>p</keysym></term>
<listitem>
<para>Jump to previous change.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keysym>a</keysym></term>
<listitem>
<para>Set current chunk to version A.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keysym>b</keysym></term>
<listitem>
<para>Set current chunk to version B.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keysym>u</keysym></term>
<listitem>
<para>Set current chunk to unresolved.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keycombo action='simul'><keycap>shift</keycap><keysym>a</keysym></keycombo></term>
<listitem>
<para>Set all changes to version A.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keycombo action='simul'><keycap>shift</keycap><keysym>b</keysym></keycombo></term>
<listitem>
<para>Set all changes to version B.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keycombo action='simul'><keycap>shift</keycap><keysym>u</keysym></keycombo></term>
<listitem>
<para>Set all changes to unresolved.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keysym>e</keysym></term>
<listitem>
<para>Launch external editor.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keysym>r</keysym></term>
<listitem>
<para>Discard editor-made changes. (Available only after <keysym>e</keysym>.)</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keysym>x</keysym>, <keysym>s</keysym></term>
<listitem>
<para>Save and exit.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keysym>q</keysym>, <keycombo action='simul'><keycap>ctrl</keycap><keysym>c</keysym></keycombo></term>
<listitem>
<para>Exit without saving.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><keycap>home</keycap>, <keycap>end</keycap></term>
<listitem>
<para>Jump to start or end.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para>sdiff (1), diff (1), merge (1), diff3 (1).</para>
</refsect1>
<refsect1>
<title>COPYRIGHT</title>
<para>This manual page as well as the program itself was written
by <author>&dhfirstname; &dhsurname;</author> (&dhemail;).
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.
</para>
</refsect1>
</refentry>
|