summaryrefslogtreecommitdiffstats
path: root/lib/git/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/base.rb')
-rw-r--r--lib/git/base.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/git/base.rb b/lib/git/base.rb
index 6372beb..4c5cdf5 100644
--- a/lib/git/base.rb
+++ b/lib/git/base.rb
@@ -6,6 +6,8 @@ module Git
@repository = nil
@index = nil
+ @lib = nil
+
# opens a bare Git Repository - no working directory options
def self.bare(git_dir)
self.new :repository => git_dir
@@ -376,6 +378,10 @@ module Git
commit_tree(tree, opts)
end
+ def update_ref(branch, commit)
+ branch(branch).update_ref(commit)
+ end
+
def ls_files
self.lib.ls_files
end