Просмотр исходного кода

Merge pull request #50 from fgimian/git-cdiff-info

Added another suggested way to use cdiff with git
ymattw 9 лет назад
Родитель
Сommit
b63607d3c9
1 измененных файлов: 9 добавлений и 0 удалений
  1. 9
    0
      README.rst

+ 9
- 0
README.rst Просмотреть файл

@@ -109,6 +109,15 @@ Read log with changes in a *Git/Mercurial/Svn* workspace (output from e.g.
109 109
     cdiff -ls -w90              # set text width 90 as well
110 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 121
 Pipe in a diff:
113 122
 
114 123
 .. code-block:: bash