From d519612ded5efb3dc91d929385293a3ded736b4f Mon Sep 17 00:00:00 2001 From: wdjwxh Date: Thu, 11 Dec 2025 15:54:26 +0800 Subject: [PATCH] t2 --- sync.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sync.py b/sync.py index ed2ac83..db7023e 100644 --- a/sync.py +++ b/sync.py @@ -206,12 +206,14 @@ def parse_diff_with_line_numbers(diff_text): }) elif line.startswith('---') or line.startswith('+++'): # 文件头信息 - parsed_lines.append({ - 'type': 'header', - 'content': line, - 'old_line': None, - 'new_line': None - }) + continue + + #parsed_lines.append({ + # 'type': 'header', + # 'content': line, + # 'old_line': None, + # 'new_line': None + #}) elif in_hunk: if line.startswith('-'): # 删除的行