diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-11 10:04:26 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-11 10:04:26 -0800 |
commit | a1237671ba3ec38f5b123ee6600e4352dc03196b (patch) | |
tree | 71bc13cb36799e778237097b343a4d4fa9189b3f /lib/git/base.rb | |
parent | efcce7fc123b9e64fb9d93224e4e78d09144af3d (diff) | |
download | third_party-ruby-git-a1237671ba3ec38f5b123ee6600e4352dc03196b.tar.gz third_party-ruby-git-a1237671ba3ec38f5b123ee6600e4352dc03196b.tar.xz third_party-ruby-git-a1237671ba3ec38f5b123ee6600e4352dc03196b.zip |
git add working, git status object working
Diffstat (limited to 'lib/git/base.rb')
-rw-r--r-- | lib/git/base.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/git/base.rb b/lib/git/base.rb index 00495c7..eded12d 100644 --- a/lib/git/base.rb +++ b/lib/git/base.rb @@ -92,6 +92,7 @@ module Git def config(name = nil, value = nil) if(name && value) # set value + lib.config_set(name, value) elsif (name) # return value lib.config_get(name) @@ -114,7 +115,11 @@ module Git def log(count = 30) Git::Log.new(self, count) end - + + def status + Git::Status.new(self) + end + def branches Git::Branches.new(self) end @@ -131,6 +136,11 @@ module Git Git::Diff.new(self, objectish, obj2) end + # adds files from the working directory to the git repository + def add(path = '.') + self.lib.add(path) + end + # convenience methods def revparse(objectish) |