Add ".gitattributes".

Update contributor guidelines.
This commit is contained in:
Gilles Sadowski 2022-12-17 22:22:08 +01:00
parent 1b32ce9cb4
commit 2998aa2312
2 changed files with 7 additions and 12 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
* text=auto
*.patch -text

View File

@ -152,18 +152,11 @@
Please make sure to set your IDE or editor to use spaces instead of tabs. Please make sure to set your IDE or editor to use spaces instead of tabs.
</p> </p>
<p> <p>
Committers should configure the <source>user.name</source>, Committers should configure the <source>user.name</source> and
<source>user.email</source> and <source>core.autocrlf</source> <source>user.email</source> and git repository (or global) settings
git repository or global settings with <source>git config</source>. with <source>git config</source>.
The first two settings define the identity and mail of the committer. They define the identity and mail of the committer.
The third setting deals with line endings to achieve consistency See <a href="http://www.git-scm.com/book/en/Customizing-Git-Git-Configuration">Customizing
in line endings. Windows users should configure this setting to
<source>true</source> (thus forcing git to convert CR/LF line endings
in the workspace while maintaining LF only line endings in the repository)
while OS X and Linux users should configure it to <source>input</source>
(thus forcing git to only strip accidental CR/LF when committing into
the repository, but never when cheking out files from the repository). See <a
href="http://www.git-scm.com/book/en/Customizing-Git-Git-Configuration">Customizing
Git - Git Configuration</a> in the git book for explanation about how to Git - Git Configuration</a> in the git book for explanation about how to
configure these settings and more. configure these settings and more.
</p> </p>