File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ class Diff(object):
175
175
# precompiled regex
176
176
re_header = re .compile (r"""
177
177
#^diff[ ]--git
178
- [ ]a/(?P<a_path>\S+ )[ ]b/(?P<b_path>\S+ )\n
178
+ [ ]a/(?P<a_path>.+? )[ ]b/(?P<b_path>.+? )\n
179
179
(?:^similarity[ ]index[ ](?P<similarity_index>\d+)%\n
180
180
^rename[ ]from[ ](?P<rename_from>\S+)\n
181
181
^rename[ ]to[ ](?P<rename_to>\S+)(?:\n|$))?
Original file line number Diff line number Diff line change 1
1
diff --git a/lib/grit/commit.rb b/lib/grit/commit.rb
2
2
index a093bb1db8e884cccf396b297259181d1caebed4..80fd3d527f269ecbd570b65b8e21fd85baedb6e9 100644
3
- --- a/lib/grit/commit .rb
4
- +++ b/lib/grit/commit .rb
3
+ --- a/lib/grit/com mit .rb
4
+ +++ b/lib/grit/com mit .rb
5
5
@@ -156,12 +156,8 @@ module Grit
6
6
7
7
def diffs
You can’t perform that action at this time.
0 commit comments