Adjust line endings setting in .gitattributes

When checking out code on Windows, we have git set up to automagically
convert LF line-endings to CRLF line-endings. This confuses the canned
formatting presubmit check, which fails because the line endings are not
what it wants.

This CL turns off the automagic line-ending conversion for C/C++ source
files, so that clang-format doesn't get confused by them on Windows.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2490993002 .
This commit is contained in:
Zach Anderson 2016-11-09 09:23:21 -08:00
parent 1dfa5685ce
commit eba3743adb

10
.gitattributes vendored
View file

@ -1,8 +1,10 @@
# Source files should not be normalized to avoid confusing clang-format-diff.py
*.c text eol=lf
*.cc text eol=lf
*.cpp text eol=lf
*.h text eol=lf
# Explicitly declare text files we want to be normalized.
*.c text
*.cc text
*.cpp text
*.h text
*.gyp text
*.gypi text
*.dart text