# File lib/grit/git-ruby/internal/raw_object.rb, line 31 def sha1 Digest::SHA1.digest("%s %d\00"" % [@type, @content.length] + @content) end
# File lib/grit/git-ruby/internal/raw_object.rb, line 35 def to_hash { :type => @type, :content => @content } end
# File lib/grit/git-ruby/internal/raw_object.rb, line 26 def initialize(type, content) @type = type @content = content end