Skip to content

Commit

Permalink
Add .gitattributes for unexpected CRLF conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
osamu620 committed Nov 15, 2024
1 parent 6746092 commit db3c972
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
*.cpp text
*.hpp text

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.pgx binary
*.j2k binary
*.ppm binary

0 comments on commit db3c972

Please sign in to comment.