We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac751d1 commit 08840f4Copy full SHA for 08840f4
whatthepatch/patch.py
@@ -41,7 +41,7 @@
41
42
# git has a special index header and no end part
43
git_diffcmd_header = re.compile('^diff --git a/(.+) b/(.+)$')
44
-git_header_index = re.compile('^index ([\w]{7})..([\w]{7}) ?(\d*)$')
+git_header_index = re.compile('^index ([a-f0-9]+)..([a-f0-9]+) ?(\d*)$')
45
git_header_old_line = re.compile('^--- (.+)$')
46
git_header_new_line = re.compile('^\+\+\+ (.+)$')
47
git_header_file_mode = re.compile('^(new|deleted) file mode \d{6}$')
0 commit comments