summaryrefslogtreecommitdiffstats
path: root/lib/git/base.rb
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2008-06-24 19:00:13 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2008-06-24 19:00:13 -0400
commite0b3c363b11b27499be327d162156ddb534e2e48 (patch)
tree35cf96b6ca84e41386e28cd43a2973cfd5cf8d40 /lib/git/base.rb
parentb73d3c8fb2039cb06be6a52d3a21dbc959f8f50c (diff)
downloadthird_party-ruby-git-e0b3c363b11b27499be327d162156ddb534e2e48.tar.gz
third_party-ruby-git-e0b3c363b11b27499be327d162156ddb534e2e48.tar.xz
third_party-ruby-git-e0b3c363b11b27499be327d162156ddb534e2e48.zip
Adding trivial rebase support
Diffstat (limited to 'lib/git/base.rb')
-rw-r--r--lib/git/base.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/git/base.rb b/lib/git/base.rb
index 61b1f62..ad8f504 100644
--- a/lib/git/base.rb
+++ b/lib/git/base.rb
@@ -303,6 +303,11 @@ module Git
def merge(branch, message = 'merge')
self.lib.merge(branch, message)
end
+
+ # rebases the current working branch to 'branch'
+ def rebase(branch)
+ self.lib.rebase(branch)
+ end
# iterates over the files which are unmerged
#