meta: gitattributes

Summary:
Better markdown/css diff handling and binary handling

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: not really?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D271
This commit is contained in:
revi 2024-06-12 11:49:51 +09:00
parent 55ce2b96ac
commit 1a8f2aaccf
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94

24
.gitattributes vendored Normal file
View file

@ -0,0 +1,24 @@
* text=auto
*.sh text=auto eol=lf
*.asc binary
*.gif binary
*.jpg binary
*.jpeg binary
*.mp3 binary
*.mp4 binary
*.png binary
*.webm binary
*.webp binary
*.woff2 binary
*.css diff=css
*.html diff=html
*.md diff=markdown
*.php diff=php
*.sh diff=bash
# GitHub Linguist detection
# https://github.com/github-linguist/linguist/blob/master/docs/overrides.md
.arclint linguist-language=json
.yamllint linguist-language=yaml