Sha256: 85767d416dd9c1e81ed1aa1eeb40ebba2e6542c105d31c11bd354627d635419e
Contents?: true
Size: 401 Bytes
Versions: 2
Compression:
Stored size: 401 Bytes
Contents
module Dandelion class Tree attr_reader :commit def initialize(repo, commit) @repo = repo @commit = commit end def data(path) object = @commit.tree path.split('/').each do |name| return nil unless object[name] object = @repo.lookup(object[name][:oid]) return nil unless object end object.read_raw.data end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dandelion-0.4.0 | lib/dandelion/tree.rb |
dandelion-0.4.0.beta2 | lib/dandelion/tree.rb |