Browse Source

Added another suggested way to use cdiff with git

Fotis Gimian 9 years ago
parent
commit
ac3467acaa
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      README.rst

+ 9
- 0
README.rst View File

109
     cdiff -ls -w90              # set text width 90 as well
109
     cdiff -ls -w90              # set text width 90 as well
110
     cdiff -ls file1 dir2        # see log with changes of given files/dirs only
110
     cdiff -ls file1 dir2        # see log with changes of given files/dirs only
111
 
111
 
112
+If you feel more comfortable with a command such as ``git cdiff`` to trigger
113
+the cdiff command, you may symlink the executable to one named ``git-cdiff``
114
+as follows:
115
+
116
+.. code-block:: bash
117
+
118
+    cdiff_dir=$(dirname $(which cdiff))
119
+    ln -s "${cdiff_dir}/cdiff" "${cdiff_dir}/git-cdiff"
120
+
112
 Pipe in a diff:
121
 Pipe in a diff:
113
 
122
 
114
 .. code-block:: bash
123
 .. code-block:: bash