got clone and init to work - my first writing functions
[rubygit.git] / lib / git.rb
blobbb683883f04597edd526481019b3ac2e84775aa3
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 =begin
24 require 'git/author'
25 require 'git/file'
27 require 'git/sha'
28 require 'git/ref'
29 =end
31 module Git
32   
33   def self.bare(git_dir)
34     Base.bare(git_dir)
35   end
36     
37   def self.open(working_dir, options = {})
38     Base.open(working_dir, options)
39   end
41   def self.init(working_dir = '.', options = {})
42     Base.init(working_dir, options)
43   end
45   def self.clone(repository, name, options = {})
46     Base.clone(repository, name, options)
47   end
48     
49 end