diff options
author | scott Chacon <schacon@agadorsparticus.corp.reactrix.com> | 2007-11-07 16:24:15 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.corp.reactrix.com> | 2007-11-07 16:24:15 -0800 |
commit | b5d6b907b080992c2d0220eceb66f4ffa85207cd (patch) | |
tree | 6a9b2829ac3087b237a88ffe90528905f90c6e34 /lib/git.rb | |
parent | f5baa11a1c82dc42ade5c291e9f061c13b66bc2f (diff) | |
download | third_party-ruby-git-b5d6b907b080992c2d0220eceb66f4ffa85207cd.tar.gz third_party-ruby-git-b5d6b907b080992c2d0220eceb66f4ffa85207cd.tar.xz third_party-ruby-git-b5d6b907b080992c2d0220eceb66f4ffa85207cd.zip |
got the first round working
Diffstat (limited to 'lib/git.rb')
-rw-r--r-- | lib/git.rb | 49 |
1 files changed, 49 insertions, 0 deletions
@@ -4,4 +4,53 @@ $:.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' + +=begin +require 'git/object' + +require 'git/object/commit' +require 'git/object/blob' +require 'git/object/tree' +require 'git/object/tag' + +require 'git/author' +require 'git/ref' +require 'git/file' + +require 'git/log' +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 + +g = Git.open('/Users/schacon/Sites/glue') +g = Git.repo('/Users/schacon/Sites/glue/.git') |