Sha256: 0593b0eb82659d5f099ec8df5c70b8ea7f7b3572a0638d15416c1768e98c3b88
Contents?: true
Size: 337 Bytes
Versions: 1
Compression:
Stored size: 337 Bytes
Contents
require 'grit' include Grit module Heirloom class GitDirectory def initialize(args) @path = args[:path] end def commit(sha = nil) repo = Repo.new @path if sha commit = repo.commits(sha) commit ? commit.first : false else repo.commits.first end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.3.1 | lib/heirloom/directory/git_directory.rb |