lib/gitlab/git/blob.rb
# Efficient lookup to determine if object size
# and type make it a possible LFS blob without loading
# blob content into memory with repository.lookup(sha)
Efficient lookup to determine if object size
and type make it a possible LFS blob without loading
blob content into memory with repository.lookup(sha)
Efficient lookup to determine if object size and type make it a possible LFS blob without loading blob content into memory with repository . lookup ( sha )
def possible_lfs_blob?(repository, sha)
          object_header = repository.rugged.read_header(sha)
          object_header[:type] == :blob &&
            size_could_be_lfs?(object_header[:len])
        end
def possible_lfs_blob? ( repository , sha ) object_header = repository . rugged . read_header ( sha ) object_header [ :type ] == :blob && size_could_be_lfs? ( object_header [ :len ] ) end
Efficient lookup to determine if object size
and type make it a possible LFS blob without loading
blob content into memory with repository.lookup(sha)
Efficient lookup to determine if object size and type make it a possible LFS blob without loading blob content into memory with repository . lookup ( sha )
repository
<not_specific>
sha
<not_specific>