summaryrefslogtreecommitdiffstats
path: root/lib/git/base.rb
diff options
context:
space:
mode:
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)