blob: bb683883f04597edd526481019b3ac2e84775aa3 (
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
|
# 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'
require 'git/diff'
=begin
require 'git/author'
require 'git/file'
require 'git/sha'
require 'git/ref'
=end
module Git
def self.bare(git_dir)
Base.bare(git_dir)
end
def self.open(working_dir, options = {})
Base.open(working_dir, options)
end
def self.init(working_dir = '.', options = {})
Base.init(working_dir, options)
end
def self.clone(repository, name, options = {})
Base.clone(repository, name, options)
end
end
|