We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1364759 commit 94029ceCopy full SHA for 94029ce
lib/git/diff.py
@@ -175,7 +175,7 @@ class Diff(object):
175
# precompiled regex
176
re_header = re.compile(r"""
177
#^diff[ ]--git
178
- [ ]a/(?P<a_path>\S+)[ ]b/(?P<b_path>\S+)\n
+ [ ]a/(?P<a_path>.+?)[ ]b/(?P<b_path>.+?)\n
179
(?:^similarity[ ]index[ ](?P<similarity_index>\d+)%\n
180
^rename[ ]from[ ](?P<rename_from>\S+)\n
181
^rename[ ]to[ ](?P<rename_to>\S+)(?:\n|$))?
test/fixtures/diff_2
@@ -1,7 +1,7 @@
1
diff --git a/lib/grit/commit.rb b/lib/grit/commit.rb
2
index a093bb1db8e884cccf396b297259181d1caebed4..80fd3d527f269ecbd570b65b8e21fd85baedb6e9 100644
3
---- a/lib/grit/commit.rb
4
-+++ b/lib/grit/commit.rb
+--- a/lib/grit/com mit.rb
++++ b/lib/grit/com mit.rb
5
@@ -156,12 +156,8 @@ module Grit
6
7
def diffs
0 commit comments