소스 검색

Added another suggested way to use cdiff with git

Fotis Gimian 9 년 전
부모
커밋
ac3467acaa
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