Skip to content

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

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

chore(.gitattributes): retain binary file eol style#882
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>
@Fdawgs Fdawgs changed the title chore(.gitattributes): ensure non-text files remain untouched chore(.gitattributes): retain binary file eol style Apr 23, 2026
@Eomm Eomm merged commit 2877dbc into main Apr 29, 2026
17 checks passed
@Eomm Eomm deleted the chore/gitattributes-eol branch April 29, 2026 09:24
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