summaryrefslogtreecommitdiffstats
path: root/lib/git.rb
blob: 2e372d01ff2af0d56996f60bddfabfb3ca8930c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

# Add the directory containing this file to the start of the load path if it
# isn't there already.
$:.unshift(File.dirname(__FILE__)) unless
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))

require 'git/base'
require 'git/path'
#require 'git/lib'

require 'git/repository'
require 'git/index'
require 'git/working_directory'

=begin
require 'git/object'

require 'git/object/commit'
require 'git/object/blob'
require 'git/object/tree'
require 'git/object/tag'

require 'git/author'
require 'git/ref'
require 'git/file'

require 'git/log'
require 'git/sha'
require 'git/diff'

require 'git/branch'
require 'git/remote'
=end

module Git

  def self.repo(git_dir)
    Base.repo(git_dir)
  end
    
  def self.open(working_dir, options = {})
    Base.open(working_dir, options)
  end

  def clone
    Base.clone()
  end

  def init(working_dir = '.')
    Base.clone()
  end
  
end