summaryrefslogtreecommitdiff
path: root/development/icdiff/icdiff.rst
blob: 2fc7167f997573945c1fa4c73014c92c31fb6d0c (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
92
93
94
95
96
97
.. RST source for icdiff(1) man page. Convert with:
..   rst2man.py icdiff.rst > icdiff.1
.. rst2man.py comes from the SBo development/docutils package.

.. |version| replace:: 2.0.4
.. |date| date::

======
icdiff
======

-------------------
improved color diff
-------------------

:Manual section: 1
:Manual group: SlackBuilds.org
:Date: |date|
:Version: |version|

SYNOPSIS
========

icdiff [*-options*] left_file right_file

git-icdiff [*git diff options*]

DESCRIPTION
===========

**icdiff** show differences between files in a colorful two column view.

**git-icdiff** is a wrapper around **git diff** that uses **icdiff** to show diffs.

OPTIONS
=======

--version             show program's version number and exit
-h, --help            show this help message and exit
--cols=COLS           specify the width of the screen. Autodetection is Unix only
--encoding=ENCODING   specify the file encoding; defaults to utf8
-E MATCHER, --exclude-lines=MATCHER
                      Do not diff lines that match this regex. Not compatible with the 'line-numbers' option
--head=HEAD           consider only the first N lines of each file
-H, --highlight       color by changing the background color instead of the foreground color.  Very fast, ugly, displays all changes
-L LABELS, --label=LABELS
                      override file labels with arbitrary tags. Use twice, one for each file
-N, --line-numbers    generate output with line numbers. Not compatible with the 'exclude-lines' option.
--no-bold             use non-bold colors; recommended for solarized
--no-headers          don't label the left and right sides with their file names
--output-encoding=OUTPUT_ENCODING
                      specify the output encoding; defaults to utf8
-r, --recursive       recursively compare subdirectories
-s, --report-identical-files
                      report when two files are the same
--show-all-spaces     color all non-matching whitespace including that which is not needed for drawing the eye to changes.  Slow, ugly, displays all changes
--tabsize=TABSIZE     tab stop spacing
-t, --truncate        truncate long lines instead of wrapping them
-u, --patch           generate patch. This is always true, and only exists for compatibility
-U NUM, --unified=NUM, --numlines=NUM
                      how many lines of context to print; can't be combined with --whole-file
-W, --whole-file      show the whole file instead of just changed lines and context
--strip-trailing-cr   strip any trailing carriage return at the end of an input line
--color-map=COLOR_MAP
                      choose which colors are used for which items. Default is --color-map='add:green_bold,change:yellow_bold,description:blue,meta:magenta,separator:blue,subtract:red_bold'.  You don't have to override all of them: '--color-map=separator:white,description:cyan'
--is-git-diff         Show the real file name when displaying git-diff result

NOTE
====

It's highly recommended to use wide terminals with **icdiff**, for
instance 160 columns or more.

EXAMPLES
========

See the file /usr/doc/icdiff-|version|/README.md for examples.

COPYRIGHT
=========

See the file /usr/doc/icdiff-|version|/LICENSE for license information.

AUTHORS
=======

icdiff was written by Jeff Kaufman.

This man page written for the SlackBuilds.org project
by B. Watson, and is licensed under the WTFPL.

SEE ALSO
========

diff(1), colordiff(1), git-difftool(1)

The icdiff homepage: https://www.jefftk.com/icdiff