From 94029ce1420ced83c3e5dcd181a2280b26574bc9 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 15 Oct 2010 12:53:14 +0200 Subject: Adjusted regex to support whitespace - it was a little restrictive previously, although there was absolutely no need for that. See http://byronimo.lighthouseapp.com/projects/51787/tickets/41-diff-regex-lib_git_diffpy-cannot-handle-paths-with-spaces --- lib/git/diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/git/diff.py') diff --git a/lib/git/diff.py b/lib/git/diff.py index e1749adc..48253c42 100644 --- a/lib/git/diff.py +++ b/lib/git/diff.py @@ -175,7 +175,7 @@ class Diff(object): # precompiled regex re_header = re.compile(r""" #^diff[ ]--git - [ ]a/(?P\S+)[ ]b/(?P\S+)\n + [ ]a/(?P.+?)[ ]b/(?P.+?)\n (?:^similarity[ ]index[ ](?P\d+)%\n ^rename[ ]from[ ](?P\S+)\n ^rename[ ]to[ ](?P\S+)(?:\n|$))? -- cgit v1.2.1