Skip to content

Conversation

@bk2204
Copy link
Member

@bk2204 bk2204 commented Oct 29, 2024

We check in a variety of places that our pointer files are less than 1 KiB in size. Because this is a limitation, let's document it in the spec so that users can easily understand the constraint.

docs/spec.md Outdated
* Values MUST NOT contain return or newline characters.
* Pointer files MUST be stored in Git with their executable bit matching that
of the replaced file.
* Pointer files must be less than 1024 bytes in size.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for adding this key bit of documentation!

The only thing I can think we might expand on here is to clarify that this maximum includes any Git LFS pointer extension lines as well, maybe just by saying something like:

Suggested change
* Pointer files must be less than 1024 bytes in size.
* Pointer files must be less than 1024 bytes in size, including any pointer extension lines.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've squashed that in.

We check in a variety of places that our pointer files are less than 1
KiB in size.  Because this is a limitation, let's document it in the
spec so that users can easily understand the constraint.
@bk2204 bk2204 marked this pull request as ready for review November 4, 2024 20:06
@bk2204 bk2204 requested a review from a team as a code owner November 4, 2024 20:06
Copy link
Member

@chrisd8088 chrisd8088 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much for this!

@bk2204 bk2204 merged commit f979a7d into git-lfs:main Nov 4, 2024
10 checks passed
@bk2204 bk2204 deleted the pointer-size branch November 4, 2024 20:55
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