Skip to content

Commit

Permalink
Merge branch 'bc/clarify-eol-attr'
Browse files Browse the repository at this point in the history
Documentation update

* bc/clarify-eol-attr:
  doc: clarify interaction between 'eol' and text=auto
  • Loading branch information
gitster committed Feb 24, 2022
2 parents 008adee + 6a5678f commit 66633f2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Documentation/gitattributes.txt
Expand Up @@ -161,11 +161,12 @@ unspecified.

This attribute sets a specific line-ending style to be used in the
working directory. This attribute has effect only if the `text`
attribute is set or unspecified, or if it is set to `auto` and the file
is detected as text. Note that setting this attribute on paths which
are in the index with CRLF line endings may make the paths to be
considered dirty. Adding the path to the index again will normalize the
line endings in the index.
attribute is set or unspecified, or if it is set to `auto`, the file is
detected as text, and it is stored with LF endings in the index. Note
that setting this attribute on paths which are in the index with CRLF
line endings may make the paths to be considered dirty unless
`text=auto` is set. Adding the path to the index again will normalize
the line endings in the index.

Set to string value "crlf"::

Expand Down

0 comments on commit 66633f2

Please sign in to comment.