Kaynağa Gözat

Added another suggested way to use cdiff with git

Fotis Gimian 9 yıl önce
ebeveyn
işleme
ac3467acaa
1 değiştirilmiş dosya ile 9 ekleme ve 0 silme
  1. 9
    0
      README.rst

+ 9
- 0
README.rst Dosyayı Görüntüle

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