summaryrefslogtreecommitdiffstats
path: root/lib/git/branch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/branch.rb')
-rw-r--r--lib/git/branch.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/git/branch.rb b/lib/git/branch.rb
index f9106ab..c2ce810 100644
--- a/lib/git/branch.rb
+++ b/lib/git/branch.rb
@@ -75,6 +75,10 @@ module Git
end
end
+ def update_ref(commit)
+ @base.lib.update_ref(@full, commit)
+ end
+
def to_a
[@full]
end