summaryrefslogtreecommitdiffstats
path: root/lib/git/base.rb
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2007-11-11 10:04:26 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2007-11-11 10:04:26 -0800
commita1237671ba3ec38f5b123ee6600e4352dc03196b (patch)
tree71bc13cb36799e778237097b343a4d4fa9189b3f /lib/git/base.rb
parentefcce7fc123b9e64fb9d93224e4e78d09144af3d (diff)
downloadthird_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.rb12
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)