summaryrefslogtreecommitdiffstats
path: root/lib/git.rb
blob: 91c3e0f606988f518af7c061f1ab9403f269cd5d (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

# 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'

require 'git/log'
require 'git/object'

=begin


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

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