1CUT-DIFF(1)                     Cutter's manual                    CUT-DIFF(1)
2
3
4

NAME

6       cut-diff - show difference between 2 files with color
7

SYNOPSIS

9       cut-diff [option ...] file1 file2
10

DESCRIPTION

12       cut-diff  is  a diff command that uses diff feature in Cutter. It shows
13       difference with color.
14
15       It's recommended that you use a normal diff(1) when  you  want  to  use
16       with patch(1) or you don't need color.
17

OPTIONS

19       --version
20              cut-diff shows its own version and exits.
21
22       -c [yes|true|no|false|auto], --color=[yes|true|no|false|auto]
23              If  'yes' or 'true' is specified, cut-diff uses colorized output
24              by escape sequence. If 'no' or 'false'  is  specified,  cut-diff
25              never  use colorized output. If 'auto' or the option is omitted,
26              cut-diff uses colorized output if available.
27
28              The default is auto.
29
30       -u, --unified
31              cut-diff uses unified diff format.
32
33       --context-lines=LINES
34              Shows diff context around LINES.
35
36              All lines are shown by default.  When  unified  diff  format  is
37              used, 3 lines are shown by default.
38
39       --label=LABEL, -L=LABEL
40              Uses  LABEL  as a header label. The first--label option value is
41              used as file1's label and the second  --label  option  value  is
42              used asfile2's label.
43
44              Labels are the same as file names by default.
45

EXIT STATUS

47       The exit status is 0 for success, non-0 otherwise.
48
49       TODO: 0 for non-difference, 1 for difference and non-0 for errors.
50

EXAMPLE

52       In  the  following example, cut-diff shows difference between file1 and
53       file2:
54           % cut-diff file1 file2
55
56       In the following example, cut-diff shows difference between  file1  and
57       file2 with unified diff format:
58           % cut-diff -u file1 file2
59

SEE ALSO

61       diff(1)
62
63
64
65
66Cutter                          September 2017                     CUT-DIFF(1)
Impressum