diff options
Diffstat (limited to 'lib/git/base.rb')
-rw-r--r-- | lib/git/base.rb | 13 |
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 |