Method: Grit::Index#read_tree

Defined in:
lib/grit/index.rb

#read_tree(tree) ⇒ Object

Public: Read the contents of the given Tree into the index to use as a starting point for the index.

tree - The String branch/tag/sha of the Git tree object.

Returns nothing.



66
67
68
# File 'lib/grit/index.rb', line 66

def read_tree(tree)
  self.current_tree = self.repo.tree(tree)
end