Skip to content

Commit

Permalink
Documentation: mention that eol can change the dirty status of paths
Browse files Browse the repository at this point in the history
When setting the `eol` attribute, paths can change their dirty status
without any change in the working directory. This can cause confusion
and should at least be mentioned with a remedy.

Signed-off-by: Ben Boeckel <[email protected]>
Reviewed-by: Torsten Bögershausen <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
mathstuf authored and gitster committed Sep 6, 2017
1 parent edc74bc commit 3bc4b8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Documentation/gitattributes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ unspecified.

This attribute sets a specific line-ending style to be used in the
working directory. It enables end-of-line conversion without any
content checks, effectively setting the `text` attribute.
content checks, effectively setting the `text` attribute. 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.

Set to string value "crlf"::

Expand Down

0 comments on commit 3bc4b8f

Please sign in to comment.