Method: Git::Lib#read_tree
- Defined in:
- lib/git/lib.rb
#read_tree(treeish, opts = {}) ⇒ Object
reads a tree into the current index file
766 767 768 769 770 771 |
# File 'lib/git/lib.rb', line 766 def read_tree(treeish, opts = {}) arr_opts = [] arr_opts << "--prefix=#{opts[:prefix]}" if opts[:prefix] arr_opts += [treeish] command('read-tree', arr_opts) end |