Hey everyone,

This isn't a huge change but I think it is important.

I noticed that .gitattributes was not properly configured to utilize
modern Git features:

1. "* text=auto" to specify automatic line ending handling for files
that git detects as text files
2. Replace deprecated attribute specifications with newer versions
3. General cleanup and removal of redundant attributes

One patch file is a line-ending conversion that does nothing more than
replace CRLF with LF. This must be done since the goal is that all
files are stored natively as LF in the actual repository. Line ending
conversions are applied to the working copy as needed (e.g. LF -> CRLF
on Windows for certain files, like VCPROJ)

Note that this isn't simply a "cleanup" change. There were actually
some things wrong with the current gitattributes:

1. Some files were not properly being handled by git
2. Git config settings on a per-machine basis affected the EOL
normalization in the repository

These changes will enforce consistency and ignore per-machine settings.

Let me know if the changes look acceptable. I'm happy to answer any questions.

Attachment: 0001-Add-automatic-EOL-handling-to-.gitattributes.patch
Description: Binary data

Attachment: 0002-Normalized-line-endings.patch
Description: Binary data

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to