Sha256: 09829e6205106d2f597547df0723643830da6406b7c66e1bd3f7cad87ad27461
Contents?: true
Size: 727 Bytes
Versions: 1
Compression:
Stored size: 727 Bytes
Contents
module Rugged class Commit def inspect "#<Rugged::Commit:#{object_id} {message: #{message.inspect}, tree: #{tree.inspect}, parents: #{parent_oids.inspect}>" end # The time when this commit was made effective. This is the same value # as the +:time+ attribute for +commit.committer+. # # Returns a Time object def time @time ||= Time.at(self.epoch_time) end def to_hash { :message => message, :committer => committer, :author => author, :tree => tree, :parents => parents, } end def modify(new_args, update_ref=nil) args = self.to_hash.merge(new_args) Commit.create(args, update_ref) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rugged-0.17.0b2 | lib/rugged/commit.rb |