浏览代码

detect git diff needs to be more agressive

Matthew Wang 12 年前
父节点
当前提交
966060f66f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/cdiff.py

+ 1
- 1
src/cdiff.py 查看文件

@@ -310,7 +310,7 @@ class Udiff(Diff):
310 310
 class DiffParser(object):
311 311
 
312 312
     def __init__(self, stream):
313
-        for line in stream[:10]:
313
+        for line in stream[:20]:
314 314
             if line.startswith('+++ '):
315 315
                 self._type = 'udiff'
316 316
                 break