Skip to content

chore(.gitattributes): retain binary file eol style - #577

Merged
ilteoood merged 1 commit into
mainfrom
chore/gitattributes-eol
Apr 23, 2026
Merged

ilteoood merged 1 commit into
mainfrom
chore/gitattributes-eol

Conversation

@Fdawgs

@Fdawgs Fdawgs commented Apr 23, 2026

Copy link
Copy Markdown
Member

Spotted thanks to fastify/fastify-swagger-ui#269.

.gitattributes is processed line by line, so the second line overrides the first, meaning every file that matches the * wildcard was treated as text and forced to have an eol of lf.

With this corrected attributes file, only automatically detected text files have an lf eol, whilst binaries remain untouched. See https://git-scm.com/docs/gitattributes#_effects

Checklist

Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
@Fdawgs Fdawgs changed the title chore(.gitattributes): ensure non-text files remain untouched chore(.gitattributes): retain binary file eol Apr 23, 2026
@Fdawgs Fdawgs changed the title chore(.gitattributes): retain binary file eol chore(.gitattributes): retain binary file eol style Apr 23, 2026
@ilteoood
ilteoood merged commit 899184b into main Apr 23, 2026
38 of 45 checks passed
@ilteoood
ilteoood deleted the chore/gitattributes-eol branch April 23, 2026 16:09
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants