Skip to content

dynamic blob size cutoff for pointers #524

Closed

Description

@technoweenie

When scanning blobs, Git LFS uses a byte size cutoff to filter out blobs that can't possibly be LFS pointers. Currently, this is easy since every pointer looks like this:

version https://git-lfs.github.com/spec/v1\n
oid sha256:{64-hex-string}\n
size 1234567890\n

The only variable length portion here is the size. A cutoff of 140 bytes is enough to handle really large files. With the upcoming Extensions feature, this now varies depending on what extensions are configured.

If we teach the scanner how to estimate a max size, then default repositories can continue to filter blobs over 140 bytes. Other repos with one or more extensions should have a higher limit, which means they'll have to scan more blobs.

Activity

  1. technoweenie commented on Aug 18, 2016

    @technoweenie
    ContributorAuthor

    Should also limit extension size /cc #747

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions