add basic GitAccess class

This commit is contained in:
rick
2010-10-08 13:36:18 -07:00
parent c0f8c897e7
commit 62c4b795be
3 changed files with 24 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
module Gollum
class GitAccess
attr_reader :path
attr_reader :repo
attr_reader :ref_map
attr_reader :tree_map
def initialize(path)
@path = path
@repo = Grit::Repo.new(path)
@ref_map = {}
@tree_map = {}
end
def exist?
@repo.git.exist?
end
end
end