lib/oxidized/output/gitcrypt.rb
def version(node, group)
      repo, path = yield_repo_and_path(node, group)

      repo = Git.open repo
      unlock repo
      walker = repo.log.path(path)
      i = -1
      tab = []
      walker.each do |commit|
        hash = {}
        hash[:date] = commit.date.to_s
        hash[:oid] = commit.objectish
        hash[:author] = commit.author
        hash[:message] = commit.message
        tab[i += 1] = hash
      end
      walker.reset
      tab
    rescue StandardError
      'node not found'
    end
def version(node, group)
      repo, path = yield_repo_and_path(node, group)

      repo = Git.open repo
      unlock repo
      walker = repo.log.path(path)
      i = -1
      tab = []
      walker.each do |commit|
        hash = {}
        hash[:date] = commit.date.to_s
        hash[:oid] = commit.objectish
        hash[:author] = commit.author
        hash[:message] = commit.message
        tab[i += 1] = hash
      end
      walker.reset
      tab
    rescue StandardError
      'node not found'
    end
give a hash of all oid revision for the given node, and the date of the commit