Skip to content

Commit

Permalink
.gitattributes: let git normalize all line endings
Browse files Browse the repository at this point in the history
Everything should be careful, but don't let things get troublesome.
I don't want to change the .gitattributes frequently, but the
attributes for cross-platform is not friendly, and very easy to
create mixed line endings, nobody want to see.

Modify .gitattributes and bring back some old settings.
  • Loading branch information
andytimes committed Oct 6, 2016
1 parent fbeac98 commit 1eab802
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# hosts file always be normalized on checkin
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# hosts file always be normalized on checkin.
hosts text

# Always be normalized to LF line endings on checkin and converted files
# to native line endings on checkout.
*.md text
*.yml text
*.sh text
Hindent text
lhosts text

# Don't modify binary files.
*.zip binary

0 comments on commit 1eab802

Please sign in to comment.