summaryrefslogtreecommitdiffstats
path: root/lib/git/lib.rb
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.corp.reactrix.com>2007-11-12 10:55:39 -0800
committerscott Chacon <schacon@agadorsparticus.corp.reactrix.com>2007-11-12 10:55:39 -0800
commit32fbe703605310c91677225442a62ae0869d0892 (patch)
tree00c2b73a07e1200e097490c1fa7d6b5a77fa2032 /lib/git/lib.rb
parent646304a6e7c3b2c442a0a7db995629e7009c3a14 (diff)
downloadthird_party-ruby-git-32fbe703605310c91677225442a62ae0869d0892.tar.gz
third_party-ruby-git-32fbe703605310c91677225442a62ae0869d0892.tar.xz
third_party-ruby-git-32fbe703605310c91677225442a62ae0869d0892.zip
added push, changed some docs, merged README and EXAMPLES, fixed the Rake tasks to build a proper gem
Diffstat (limited to 'lib/git/lib.rb')
-rw-r--r--lib/git/lib.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/git/lib.rb b/lib/git/lib.rb
index 5bb2e2b..575f0d7 100644
--- a/lib/git/lib.rb
+++ b/lib/git/lib.rb
@@ -296,6 +296,10 @@ module Git
command('fetch', remote.to_s)
end
+ def push(remote, branch = 'master')
+ command('push', [remote.to_s, branch.to_s])
+ end
+
def tag_sha(tag_name)
command('show-ref', ['--tags', '-s', tag_name])
end