This commit is contained in:
parent
a6e7dc5e99
commit
d519612ded
14
sync.py
14
sync.py
|
|
@ -206,12 +206,14 @@ def parse_diff_with_line_numbers(diff_text):
|
||||||
})
|
})
|
||||||
elif line.startswith('---') or line.startswith('+++'):
|
elif line.startswith('---') or line.startswith('+++'):
|
||||||
# 文件头信息
|
# 文件头信息
|
||||||
parsed_lines.append({
|
continue
|
||||||
'type': 'header',
|
|
||||||
'content': line,
|
#parsed_lines.append({
|
||||||
'old_line': None,
|
# 'type': 'header',
|
||||||
'new_line': None
|
# 'content': line,
|
||||||
})
|
# 'old_line': None,
|
||||||
|
# 'new_line': None
|
||||||
|
#})
|
||||||
elif in_hunk:
|
elif in_hunk:
|
||||||
if line.startswith('-'):
|
if line.startswith('-'):
|
||||||
# 删除的行
|
# 删除的行
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue