Method: Git::Lib#read_tree

Defined in:
lib/git/lib.rb

#read_tree(treeish, opts = {}) ⇒ Object

reads a tree into the current index file



751
752
753
754
755
756
# File 'lib/git/lib.rb', line 751

def read_tree(treeish, opts = {})
  arr_opts = []
  arr_opts << "--prefix=#{opts[:prefix]}" if opts[:prefix]
  arr_opts += [treeish]
  command('read-tree', arr_opts)
end