class Rugged::Commit

def self.prettify_message(msg, strip_comments = true)

def self.prettify_message(msg, strip_comments = true)
  Rugged::prettify_message(msg, strip_comments)
end

def diff(*args)

See Rugged::Tree#diff for more details.

Return a diff between this commit and its first parent or another commit or tree.
def diff(*args)
  args.unshift(parents.first) if args.size == 1 && args.first.is_a?(Hash)
  self.tree.diff(*args)
end

def diff_workdir(options = {})

See Rugged::Tree#diff_workdir for more details.

Return a diff between this commit and the workdir.
def diff_workdir(options = {})
  self.tree.diff_workdir(options)
end

def inspect

def inspect
  "#<Rugged::Commit:#{object_id} {message: #{message.inspect}, tree: #{tree.inspect}, parents: #{parent_oids}}>"
end

def modify(new_args, update_ref=nil)

def modify(new_args, update_ref=nil)
  args = self.to_hash.merge(new_args)
  Commit.create(args, update_ref)
end

def time

Returns a Time object

as the +:time+ attribute for +commit.committer+.
The time when this commit was made effective. This is the same value
def time
  @time ||= Time.at(self.epoch_time)
end

def to_hash

def to_hash
  {
    :message => message,
    :committer => committer,
    :author => author,
    :tree => tree,
    :parents => parents,
  }
end