From 3c1b3f01465a74f7e0617c1d6f06a1f0bf684c90 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Fri, 16 Nov 2007 11:31:08 -0800 Subject: added update-ref --- lib/git/lib.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/git/lib.rb') 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 -- cgit