|
@@ -97,7 +97,9 @@ Type ``cdiff -h`` to show usage::
|
97
|
97
|
|
98
|
98
|
Note:
|
99
|
99
|
Option parser will stop on first unknown option and pass them down to
|
100
|
|
- underneath revision control
|
|
100
|
+ underneath revision control. Environment variable CDIFF_OPTIONS may be
|
|
101
|
+ used to specify default options that will be placed at the beginning
|
|
102
|
+ of the argument list.
|
101
|
103
|
|
102
|
104
|
Read diff from local modification in a *Git/Mercurial/Svn* workspace (output
|
103
|
105
|
from e.g. ``git diff``, ``svn diff``):
|
|
@@ -126,6 +128,14 @@ Read log with changes in a *Git/Mercurial/Svn* workspace (output from e.g.
|
126
|
128
|
cdiff -ls -w90 # set text width 90 as well
|
127
|
129
|
cdiff -ls file1 dir2 # see log with changes of given files/dirs only
|
128
|
130
|
|
|
131
|
+Environment variable ``CDIFF_OPTIONS`` may be used to specify default options
|
|
132
|
+that will be placed at the beginning of the argument list, for example:
|
|
133
|
+
|
|
134
|
+.. code-block:: bash
|
|
135
|
+
|
|
136
|
+ export CDIFF_OPTIONS='-s -w0'
|
|
137
|
+ cdiff foo # equivalent to "cdiff -s -w0 foo"
|
|
138
|
+
|
129
|
139
|
If you feel more comfortable with a command such as ``git cdiff`` to trigger
|
130
|
140
|
the cdiff command, you may symlink the executable to one named ``git-cdiff``
|
131
|
141
|
as follows:
|