diff options
author | Scott Chacon <schacon@gmail.com> | 2008-03-13 13:33:49 -0700 |
---|---|---|
committer | Scott Chacon <schacon@gmail.com> | 2008-03-13 13:33:49 -0700 |
commit | 10b880b418879e662feb91ce7af98560adeaa8bb (patch) | |
tree | 30659f051447dce690c20e9f361c774b87c95e74 /lib/git/base.rb | |
parent | 8276fac333799c38b7df35f3f5522177d61f4e29 (diff) | |
download | third_party-ruby-git-10b880b418879e662feb91ce7af98560adeaa8bb.tar.gz third_party-ruby-git-10b880b418879e662feb91ce7af98560adeaa8bb.tar.xz third_party-ruby-git-10b880b418879e662feb91ce7af98560adeaa8bb.zip |
added patch from Cassie Schmitz for file checkout
Diffstat (limited to 'lib/git/base.rb')
-rw-r--r-- | lib/git/base.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/git/base.rb b/lib/git/base.rb index 2201eb5..a670fd8 100644 --- a/lib/git/base.rb +++ b/lib/git/base.rb @@ -277,6 +277,11 @@ module Git self.lib.checkout(branch, opts) end + # checks out an old version of a file + def checkout_file(version, file) + self.lib.checkout_file(version,file) + end + # fetches changes from a remote branch - this does not modify the working directory, # it just gets the changes from the remote if there are any def fetch(remote = 'origin') |