From 32fbe703605310c91677225442a62ae0869d0892 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Mon, 12 Nov 2007 10:55:39 -0800 Subject: added push, changed some docs, merged README and EXAMPLES, fixed the Rake tasks to build a proper gem --- lib/git/base.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/git/base.rb') diff --git a/lib/git/base.rb b/lib/git/base.rb index d97948e..21578f8 100644 --- a/lib/git/base.rb +++ b/lib/git/base.rb @@ -185,7 +185,7 @@ module Git self.lib.commit(message, opts) end - def checkout(branch, opts = {}) + def checkout(branch = 'master', opts = {}) self.lib.checkout(branch, opts) end @@ -193,6 +193,10 @@ module Git self.lib.fetch(remote) end + def push(remote = 'origin', branch = 'master') + self.lib.push(remote, branch) + end + def merge(branch, message = 'merge') self.lib.merge(branch, message) end -- cgit