From: Ben Boeckel Date: Thu, 31 Aug 2017 13:19:36 +0000 (-0400) Subject: Documentation: mention that `eol` can change the dirty status of paths X-Git-Tag: v2.15.0-rc0~89^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/3bc4b8f7c757059bb845b5074691362cece91c70 Documentation: mention that `eol` can change the dirty status of paths 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 Reviewed-by: Torsten Bögershausen Signed-off-by: Junio C Hamano --- diff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt index c4f2be2542..4c68bc19d5 100644 --- a/Documentation/gitattributes.txt +++ b/Documentation/gitattributes.txt @@ -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"::