• Kerri Miller's avatar
    Extract file path information from diffs directly · 01e2177a
    Kerri Miller authored
    This somewhat duplicated logic from Gitlab::Git::File#file_path,
    but to get at file path information through those objects, via
    @diff_collection#diff_files, we trigger a circular and confusing
    call back to this class. Copying the logic here isn't DRY, but it
    reduces the cognitive load for devs working in this code, avoids the
    potential circular reference, and generally makes life easier for
    reviewers.
    01e2177a
highlight_cache.rb 4.24 KB