summaryrefslogtreecommitdiffstats
path: root/lib/git/base.rb
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2007-11-11 11:32:57 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2007-11-11 11:32:57 -0800
commit070381bb456b25f3e867e9b23b78911190c6b369 (patch)
tree140a03e14e0601e941f3b5192f9a81d362565d6e /lib/git/base.rb
parent440ec51cded64d49c5c2aae949401dd60e4b876d (diff)
downloadthird_party-ruby-git-070381bb456b25f3e867e9b23b78911190c6b369.tar.gz
third_party-ruby-git-070381bb456b25f3e867e9b23b78911190c6b369.tar.xz
third_party-ruby-git-070381bb456b25f3e867e9b23b78911190c6b369.zip
added remove and reset
Diffstat (limited to 'lib/git/base.rb')
-rw-r--r--lib/git/base.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/git/base.rb b/lib/git/base.rb
index 9be9fec..46c75eb 100644
--- a/lib/git/base.rb
+++ b/lib/git/base.rb
@@ -141,6 +141,19 @@ module Git
self.lib.add(path)
end
+ def remove(path = '.', opts = {})
+ self.lib.remove(path, opts)
+ end
+
+ def reset(commitish = nil, opts = {})
+ self.lib.reset(commitish, opts)
+ end
+
+ def reset_hard(commitish = nil, opts = {})
+ opts = {:hard => true}.merge(opts)
+ self.lib.reset(path, opts)
+ end
+
def commit(message, opts = {})
self.lib.commit(message, opts)
end