Method: Oxidized::Output::Git#get_version
- Defined in:
- lib/oxidized/output/git.rb
#get_version(node, group, oid) ⇒ Object
give the blob of a specific revision
94 95 96 97 98 99 100 |
# File 'lib/oxidized/output/git.rb', line 94 def get_version(node, group, oid) repo, path = yield_repo_and_path(node, group) repo = Rugged::Repository.new repo repo.blob_at(oid, path).content rescue StandardError 'version not found' end |