Sha256: 6a1720f7b36f307036bba958f8b9aeb6e5900af78048c4337df3c971d08fb56e
Contents?: true
Size: 295 Bytes
Versions: 3
Compression:
Stored size: 295 Bytes
Contents
require 'grit' include Grit module Heirloom class GitDirectory def initialize(args) @directory = args[:directory] @logger = args[:logger] end def commit(sha = nil) r = Repo.new @directory sha ? r.commits(sha).first : r.commits.first end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.1.3 | lib/heirloom/directory/git_directory.rb |
heirloom-0.1.2 | lib/heirloom/directory/git_directory.rb |
heirloom-0.1.1 | lib/heirloom/directory/git_directory.rb |