Method: VirtualTree#touch
- Defined in:
- lib/virtual_tree.rb
#touch(diff_tree, commit) ⇒ Object
TODO: What happens when a tree moves??
54 55 56 57 58 59 60 61 62 63 |
# File 'lib/virtual_tree.rb', line 54 def touch(diff_tree, commit) if @path == diff_tree[:path] @previous_tree_id = diff_tree[:a_tree_id] @tree_id = diff_tree[:b_tree_id] @commits << commit.id @issues << commit.issue_id if commit.issue_id.present? else find_or_create_subtree!(diff_tree, commit).touch(diff_tree, commit) end end |