added the tree functions and tests
[rubygit.git] / lib / git.rb
blob7dfbd403346a3729da9bd3efba11b0663dbab44c
2 # Add the directory containing this file to the start of the load path if it
3 # isn't there already.
4 $:.unshift(File.dirname(__FILE__)) unless
5   $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
7 require 'git/base'
8 require 'git/path'
9 require 'git/lib'
11 require 'git/repository'
12 require 'git/index'
13 require 'git/working_directory'
15 require 'git/log'
16 require 'git/object'
18 require 'git/branches'
19 require 'git/branch'
20 require 'git/remote'
22 require 'git/diff'
23 require 'git/status'
24 require 'git/author'
26 module Git
28   VERSION = '1.0.2'
29   
30   def self.bare(git_dir)
31     Base.bare(git_dir)
32   end
33     
34   def self.open(working_dir, options = {})
35     Base.open(working_dir, options)
36   end
38   def self.init(working_dir = '.', options = {})
39     Base.init(working_dir, options)
40   end
42   def self.clone(repository, name, options = {})
43     Base.clone(repository, name, options)
44   end
45     
46 end