# File lib/gitlab_git/diff_collection.rb, line 26 def each(&block) if @populated # @iterator.each is slower than just iterating the array in place @array.each(&block) elsif @deltas_only each_delta(&block) else each_patch(&block) end end