force line endings in Git

Description

Per :

Thomas Watteyne <thomas.watteyne@inria.fr> wrote:
> We have two options: 1. Windows line ending. My personal favorite as
> IAR complains with warning Pa050 if that's not respected 2. Linux line
> ending

> Let's not get religious about this, but for sure let's configure our
> Git client NOT to change the line ending automatically.

https://help.github.com/articles/dealing-with-line-endings/

> Does someone strongle oppose adopting Windows endings?

It's silly. It's not used in Mac, or Unix or mainframes, and it's not even
used in Windows for quite a number of tools. The most clueless of users will
get it wrong and create silly patches.

People with weird legacy systems should read set up their git properly, but
since they are clueless, if you put:

*.c text
*.h text

into .gitattributes in the top of the repo, it will do that for you.

Environment

None

Status

Assignee

Tengfei Chang

Reporter

Thomas Watteyne

Labels

None

Story Points

3

Fix versions

Affects versions

1.10.0

Priority

Normal