summaryrefslogtreecommitdiffstats
path: root/lib/git/lib.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/lib.rb')
-rw-r--r--lib/git/lib.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/git/lib.rb b/lib/git/lib.rb
index 690043d..7742702 100644
--- a/lib/git/lib.rb
+++ b/lib/git/lib.rb
@@ -376,6 +376,11 @@ module Git
command('commit-tree', arr_opts)
end
+ def update_ref(branch, commit)
+ command('update-ref', [branch.to_s, commit.to_s])
+ end
+
+
# creates an archive file
#
# options