@@ -313,16 +313,21 @@ def extract_diff_from_git_show_output(content)
313313 end
314314
315315 def extract_commit_info_from_git_show_output ( content )
316- result = { :message => [ ] , :commit => '' , :author => '' , :date => '' , :email => '' }
316+ result = { :message => [ ] , :commit => '' , :author => '' , :date => '' , :email => '' ,
317+ :committer => '' , :commit_date => '' , :committer_email => '' }
317318 content . split ( "\n " ) . each do |line |
318319 if line =~ /^diff/ # end of commit info, return results
319320 return result
320- elsif line =~ /^commit/
321+ elsif line =~ /^commit /
321322 result [ :commit ] = line [ 7 ..-1 ]
322- elsif line =~ /^Author/
323+ elsif line =~ /^Author: /
323324 result [ :author ] , result [ :email ] = author_name_and_email ( line [ 8 ..-1 ] )
324- elsif line =~ /^Date /
325+ elsif line =~ /^AuthorDate: /
325326 result [ :date ] = line [ 8 ..-1 ]
327+ elsif line =~ /^Commit:/
328+ result [ :commitauthor ] , result [ :commit_email ] = author_name_and_email ( line [ 8 ..-1 ] )
329+ elsif line =~ /^CommitDate:/
330+ result [ :commit_date ] = line [ 8 ..-1 ]
326331 elsif line =~ /^Merge/
327332 result [ :merge ] = line [ 7 ..-1 ]
328333 else
@@ -458,6 +463,8 @@ def diff_for_commit(commit)
458463 title += "<strong>Branch:</strong> #{ CGI . escapeHTML ( branch_name ) } \n <br />"
459464 title += "<strong>Date:</strong> #{ CGI . escapeHTML commit_info [ :date ] } \n <br />"
460465 title += "<strong>Author:</strong> #{ CGI . escapeHTML ( commit_info [ :author ] ) } <#{ commit_info [ :email ] } >\n </div>"
466+ title += "<strong>Committer:</strong> #{ CGI . escapeHTML ( commit_info [ :committer ] ) } <#{ commit_info [ :commit_email ] } >\n </div>"
467+
461468 text = "#{ raw_diff } "
462469 text += "#{ changed_files } \n \n \n "
463470
0 commit comments