瀏覽代碼

Fix issue #23 with --no-ext-diff

Use `--no-ext-diff` to disable GIT_EXTERNAL_DIFF and diff.external which might
break cdiff output
Matthew Wang 11 年之前
父節點
當前提交
e19f384ba4
共有 2 個檔案被更改,包括 7 行新增2 行删除
  1. 5
    0
      CHANGES
  2. 2
    2
      cdiff.py

+ 5
- 0
CHANGES 查看文件

@@ -2,6 +2,11 @@
2 2
 Change log
3 3
 ==========
4 4
 
5
+Version 0.9.1 (2013-05-20)
6
+
7
+  - Use `--no-ext-diff` to disable GIT_EXTERNAL_DIFF and diff.external which
8
+    might break cdiff output
9
+
5 10
 Version 0.9 (2013-03-23)
6 11
 
7 12
   - Supports reading context diff via ``filterdiff`` (patchutils)

+ 2
- 2
cdiff.py 查看文件

@@ -8,7 +8,7 @@ python (>= 2.5.0) and ``less``.
8 8
 """
9 9
 
10 10
 META_INFO = {
11
-    'version'     : '0.9',
11
+    'version'     : '0.9.1',
12 12
     'license'     : 'BSD-3',
13 13
     'author'      : 'Matthew Wang',
14 14
     'email'       : 'mattwyl(@)gmail(.)com',
@@ -54,7 +54,7 @@ COLORS = {
54 54
 VCS_INFO = {
55 55
     'Git': {
56 56
         'probe' : ['git', 'rev-parse'],
57
-        'diff'  : ['env', '-u', 'GIT_EXTERNAL_DIFF', 'git', 'diff'],
57
+        'diff'  : ['git', 'diff', '--no-ext-diff'],
58 58
         'log'   : ['git', 'log', '--patch'],
59 59
     },
60 60
     'Mercurial': {