diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-16 11:31:08 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-16 11:31:08 -0800 |
commit | 3c1b3f01465a74f7e0617c1d6f06a1f0bf684c90 (patch) | |
tree | 338c7044efbd16d4bbe9a269462f1cc303d53fe9 /lib/git/lib.rb | |
parent | de071dcd8dee3d853291a5077b9dcdec07dd5362 (diff) | |
download | third_party-ruby-git-3c1b3f01465a74f7e0617c1d6f06a1f0bf684c90.tar.gz third_party-ruby-git-3c1b3f01465a74f7e0617c1d6f06a1f0bf684c90.tar.xz third_party-ruby-git-3c1b3f01465a74f7e0617c1d6f06a1f0bf684c90.zip |
added update-ref
Diffstat (limited to 'lib/git/lib.rb')
-rw-r--r-- | lib/git/lib.rb | 5 |
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 |