lib/linguist/repository.rb
def cache
      @cache ||= begin
        if @old_commit_oid == @commit_oid
          @old_stats
        else
          compute_stats(@old_commit_oid, @old_stats)
        end
      end
    end
# Public: Return the cached results of the analysis
#
# This is a per-file breakdown that can be passed to other instances
# of Linguist::Repository to perform incremental scans
#
# Returns a map of filename => [language, size]
Return the cached results of the analysis
This is a per-file breakdown that can be passed to other instances
of Linguist::Repository to perform incremental scans

Returns a map of filename => [language, size]
Return the cached results of the analysis This is a per - file breakdown that can be passed to other instances of Linguist :: Repository to perform incremental scans Returns a map of filename = > [ language size ]
def cache
      @cache ||= begin
        if @old_commit_oid == @commit_oid
          @old_stats
        else
          compute_stats(@old_commit_oid, @old_stats)
        end
      end
    end
def cache @cache ||= begin if @old_commit_oid == @commit_oid @old_stats else compute_stats ( @old_commit_oid , @old_stats ) end end end
Public: Return the cached results of the analysis
This is a per-file breakdown that can be passed to other instances
of Linguist::Repository to perform incremental scans
Public : Return the cached results of the analysis This is a per - file breakdown that can be passed to other instances of Linguist :: Repository to perform incremental scans