Skip to content

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

Merged
Eomm merged 1 commit intomainfrom
chore/gitattributes-eol
Apr 29, 2026
Merged

chore(.gitattributes): retain binary file eol style#216
Eomm merged 1 commit intomainfrom
chore/gitattributes-eol

Conversation

@Fdawgs
Copy link
Copy Markdown
Member

@Fdawgs Fdawgs commented Apr 23, 2026

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>
@Eomm Eomm merged commit 70e081f into main Apr 29, 2026
10 checks passed
@Eomm Eomm deleted the chore/gitattributes-eol branch April 29, 2026 09:26
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