Skip to content

feat: require Git LFS files to be staged as pointers - #27

Merged
emersonknapp merged 2 commits into
mainfrom
emerson/lfs-pointers
Nov 7, 2026
Merged

emersonknapp merged 2 commits into
mainfrom
emerson/lfs-pointers

Conversation

@emersonknapp

@emersonknapp emersonknapp commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Add an lfs-pointers check to polymath-general.
It fails when a staged file that .gitattributes assigns filter=lfs is a plain file, not a Git LFS pointer.

  • Reads staged content through git, so it needs no git-lfs, since a missing git-lfs is the case it catches

Minor bump on release, since a repository with plain LFS files committed will fail the check under --all-files.

Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
@emersonknapp
emersonknapp marked this pull request as ready for review November 7, 2026 00:44
@emersonknapp
emersonknapp merged commit b0ebd7f into main Nov 7, 2026
4 checks passed
@emersonknapp
emersonknapp deleted the emerson/lfs-pointers branch November 7, 2026 00:45
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.

2 participants