Sha256: 0ddc7f19ac2776e4ed5c5ca64a69216c6fe37bfb77b666da1ef4793512a5d08f
Contents?: true
Size: 373 Bytes
Versions: 2
Compression:
Stored size: 373 Bytes
Contents
# Commit类对应git当中的提交对象 require_relative "../git-hack" module GitHack class Commit attr_accessor :message,:sha,:parent,:tree,:author,:committer def initialize(hash) @sha = hash['sha'] @message = hash['message'] @parent = hash['parent'] @tree = hash['tree'] @author = hash['author'] @committer = hash['committer'] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git-hack-0.0.6 | lib/git-hack/commit.rb |
git-hack-0.0.5 | lib/git-hack/commit.rb |