Skip to content

Commit

Permalink
Update git attributes to have explicit inclusion/exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
RockasMockas committed Sep 7, 2024
1 parent 45f20bf commit 0e6be6b
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
web/* linguist-vendored

* text eol=lf
# Set default behavior to automatically normalize line endings.
* text=auto eol=lf

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.{txt,md,rs,py,js,jsx,ts,tsx,css,scss,html,xml,json,yaml,yml,toml} text

# Declare files that will always have LF line endings on checkout.
*.sh text eol=lf

# Git files
.gitattributes text
.gitignore text

# Denote all files that are truly binary and should not be modified.
*.{png,jpg,jpeg,gif,ico,webp,woff,woff2,ttf,otf,eot,mp3,mp4,wav,webm,ogg} binary

# Treat all files in the assets directory as binary
assets/** binary
old_assets/** binary

# If you have other directories with mostly binary files, add them like this:
# other_binary_directory/** binary

0 comments on commit 0e6be6b

Please sign in to comment.