Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEM: add gitattributes file to let git manage file endings and normal…
…ize them
- Loading branch information
1 parent
15f72b9
commit 12c31ab
Showing
26 changed files
with
4,968 additions
and
4,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# In case people don't have core.autocrlf set, this will manage the default line-ending | ||
# behaviour for all files recursively | ||
# * text=auto | ||
# to be save this will be commented | ||
|
||
|
||
# for more information see forum topic and pull request | ||
# https://github.com/FreeCAD/FreeCAD/pull/2752 | ||
# https://forum.freecadweb.org/viewtopic.php?f=17&t=41117 | ||
|
||
|
||
# get all used file types | ||
# in a directory in a bash use | ||
# find . -type f -name '*.*' | sed 's|.*\.||' | sort -u | ||
# add all of them either to text or binary | ||
|
||
|
||
# Explicitly declare which files we wish to always normalize line-endings on | ||
|
||
# standard endings | ||
*.bat text | ||
*.cpp text | ||
*.csv text | ||
*.h text | ||
*.md text | ||
*.py text | ||
*.qrc text | ||
*.ts text | ||
*.txt text | ||
*.ui text | ||
*.xml text | ||
*.yml text | ||
|
||
# Fem specific endings | ||
*.dat text | ||
*.frd text | ||
*.geo text | ||
*.inp text | ||
*.sif text | ||
*.unv text | ||
*.vtk text | ||
*.z88 text | ||
|
||
|
||
# These files will always be checked out with CRLF, i.e. windows-style line endings. This | ||
# really should not be needed... | ||
# *.SomeWindowsFileExtensionThatReallyRequiresCRLFEvenInLinux eol=crlf | ||
|
||
|
||
# These files should be ignored as it pertains to line-endings, because they are binary. | ||
# Since auto normalize is deactivated all these could be commented too. | ||
# *.dox binary | ||
# *.FCStd binary | ||
# *.jpg binary | ||
# *.png binary | ||
# *.pyc binary | ||
# *.qm binary | ||
# *.svg binary | ||
|
||
|
||
# use git to manually correct the file endings | ||
# git add --renormalize . |
Oops, something went wrong.