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/base.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/base.rb')
-rw-r--r-- | lib/git/base.rb | 6 |
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 |