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/technoweenie/grit.git
do not strip leading spaces from commit messages
mojombo (author)
Fri Feb 29 20:58:02 -0800 2008
commit  55737f3f9128b02bf3519f5f70b6118234454c65
tree    55498bb71d91548a3b853e600f322ef51782e28d
parent  f6b346156dd19a9fe46004a3efce4fc8d66addf9
...
145
146
147
148
 
149
150
151
...
145
146
147
 
148
149
150
151
0
@@ -145,7 +145,7 @@ module Grit
0
         lines.shift
0
         
0
         message_lines = []
0
- message_lines << lines.shift.strip while lines.first =~ /^ {4}/
0
+ message_lines << lines.shift[4..-1] while lines.first =~ /^ {4}/
0
         
0
         lines.shift while lines.first && lines.first.empty?
0
         
...
22
23
24
25
26
 
 
...
22
23
24
 
 
25
26
0
@@ -22,5 +22,5 @@ committer Tom Preston-Werner <tom@mojombo.com> 1182645538 -0700
0
 
0
     Merge branch 'site'
0
     
0
- * Some other stuff
0
- * just one more
0
+ * Some other stuff
0
+ * just one more
...
72
73
74
75
 
76
77
78
...
72
73
74
 
75
76
77
78
0
@@ -72,7 +72,7 @@ class TestRepo < Test::Unit::TestCase
0
     
0
     c = commits[2]
0
     assert_equal ["6e64c55896aabb9a7d8e9f8f296f426d21a78c2c", "7f874954efb9ba35210445be456c74e037ba6af2"], c.parents.map { |p| p.id }
0
- assert_equal "Merge branch 'site'\n\n* Some other stuff\n* just one more", c.message
0
+ assert_equal "Merge branch 'site'\n\n * Some other stuff\n * just one more", c.message
0
     assert_equal "Merge branch 'site'", c.short_message
0
   end
0
   

Comments

    No one has commented yet.