Skip to content

Detect Git LFS pointer files - #14

Merged
andrew merged 2 commits into
mainfrom
detect-lfs-pointers
Oct 1, 2026
Merged

andrew merged 2 commits into
mainfrom
detect-lfs-pointers

Conversation

@andrew

@andrew andrew commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Recognize Git LFS pointer files as FormatLFSPointer while preserving their text kind, MIME type, and UTF-8 encoding. Validate required fields, key ordering, hash syntax, and the size limit without allocations, and accept unknown extension keys.

Report valid partial pointers provisionally through DetectPrefix, falling back to ordinary text when pointer syntax is invalid. Add regression coverage, fuzz seeds, and README documentation.

Closes #11

andrew added 2 commits October 1, 2026 14:51
Accept the git-media.io alias git-lfs still reads, reject sizes beyond
int64, and derive the fuzz prefix expectation from the input so the
check can fail.
@andrew
andrew merged commit 868aa38 into main Oct 1, 2026
7 checks passed
@andrew
andrew deleted the detect-lfs-pointers branch October 1, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect Git LFS pointer files

1 participant