Normalize all line endings to LF in the repo

Change the CRLF strategie:
All (nearly all) files have LF in the repo, and CRLF in the working tree.
When we started, all files had been commited "as is".
Now it is more and more disturbing that Git shows "^M" in git diff
when a line was added or chenged.
To avoid this, store all files in the repo with LF.

To normalzie existing repos for a crate, run:

Step 1)
(unless you have done that already)
git remote add tc_generic_structure https://bitbucket.org/europeanspallationsource/tc_generic_structure.git

Step 2)
git fetch tc_generic_structure

Step 3)
(master below may be integration)
git merge tc_generic_structure/master  -X renormalize
This commit is contained in:
Torsten Bögershausen
2019-12-04 16:30:58 +01:00
parent 3331756998
commit 4ca1f6e110
13 changed files with 2676 additions and 2678 deletions

10
.gitattributes vendored
View File

@@ -1,8 +1,6 @@
# end of line conversion CLRF -- LF
# Default is no conversion (follow Visual Studio)
* -text
# Default is auto
* text=auto
#
.gitattributes text
.gitignore text
# Shell scripts must be line feed
*.sh text eol=lf