Method: Git::Lib#read_tree
- Defined in:
- lib/git/lib.rb
#read_tree(treeish, opts = {})
reads a tree into the current index file
1080 1081 1082 1083 1084 1085 |
# File 'lib/git/lib.rb', line 1080 def read_tree(treeish, opts = {}) arr_opts = [] arr_opts << "--prefix=#{opts[:prefix]}" if opts[:prefix] arr_opts += [treeish] command('read-tree', *arr_opts) end |