class Gollum::Git::Commit
Public Class Methods
list_from_string(repo, log)
click to toggle source
Grit::Commit.list_from_string(@wiki.repo, log)
# File lib/grit_adapter/git_layer_grit.rb, line 118 def self.list_from_string(repo, log) Grit::Commit.list_from_string(repo, log) end
new(commit)
click to toggle source
# File lib/grit_adapter/git_layer_grit.rb, line 80 def initialize(commit) @commit = commit end
Public Instance Methods
id()
click to toggle source
# File lib/grit_adapter/git_layer_grit.rb, line 84 def id @commit.id end
Also aliased as: sha
message()
click to toggle source
# File lib/grit_adapter/git_layer_grit.rb, line 109 def message @commit.message end
stats()
click to toggle source
# File lib/grit_adapter/git_layer_grit.rb, line 93 def stats @stats ||= begin grit_stats = @commit.stats OpenStruct.new(:additions => grit_stats.additions, :deletions => grit_stats.deletions, :files => grit_stats.files, :id => id, :total => grit_stats.total) end end
to_s()
click to toggle source
# File lib/grit_adapter/git_layer_grit.rb, line 89 def to_s @commit.id end
tree()
click to toggle source
# File lib/grit_adapter/git_layer_grit.rb, line 113 def tree Gollum::Git::Tree.new(@commit.tree) end