blob: a43aee29e66afa462aa898bfc23aabcc8cb853bd (
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
|
# 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'
require 'git/branches'
require 'git/branch'
require 'git/remote'
=begin
require 'git/author'
require 'git/file'
require 'git/diff'
require 'git/remote'
require 'git/sha'
require 'git/ref'
=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
|