Take the 2008 Git User's Survey and help out! [ hide ]

public
Fork of mojombo/grit
Description: Grit is a Ruby library for extracting information from a git repository in an object oriented manner.
Homepage: http://grit.rubyforge.org/
Clone URL: git://github.com/halorgium/grit.git
Search Repo:
do not screw up diffs that have files with spaces in them
mojombo (author)
Tue Mar 25 19:42:28 -0700 2008
commit  22825175e37f22c9418d756ca69b574d75602994
tree    21219d280aaa0c38935f2542c3f7addd143098e3
parent  179f919876a255a8e09d32a95c8209d66c7ed660
...
1
2
3
 
...
1
2
3
4
0
@@ -1,3 +1,4 @@
0
 coverage
0
 pkg
0
 doc
0
+test/specifics.rb
...
26
27
28
29
 
30
31
32
...
26
27
28
 
29
30
31
32
0
@@ -26,7 +26,7 @@ module Grit
0
       diffs = []
0
       
0
       while !lines.empty?
0
- m, a_path, b_path = *lines.shift.match(%r{^diff --git a/(\S+) b/(\S+)$})
0
+ m, a_path, b_path = *lines.shift.match(%r{^diff --git a/(.+?) b/(.+)$})
0
         
0
         if lines.first =~ /^old mode/
0
           m, a_mode = *lines.shift.match(/^old mode (\d+)/)

Comments

    No one has commented yet.