Method: Gitgo::Index#assoc

Defined in:
lib/gitgo/index.rb

#assoc(source, target, type) ⇒ Object



162
163
164
165
166
167
168
169
# File 'lib/gitgo/index.rb', line 162

def assoc(source, target, type)
  source_idx = idx(source)
  target_idx = idx(target)
  map[target_idx] = source_idx
  tail_filter << source_idx unless type == :create
  delete_filter << source_idx if type == :delete
  self
end