summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2017-08-31 13:19:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-06 23:57:54 (GMT)
commit3bc4b8f7c757059bb845b5074691362cece91c70 (patch)
tree0441f4bb745ee9895b7bd559d8463fa4bca2b679 /Documentation
parentedc74bc7f0c6884027e851ef09b2e0c9380dcd45 (diff)
downloadgit-3bc4b8f7c757059bb845b5074691362cece91c70.zip
git-3bc4b8f7c757059bb845b5074691362cece91c70.tar.gz
git-3bc4b8f7c757059bb845b5074691362cece91c70.tar.bz2
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 <mathstuf@gmail.com> Reviewed-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/gitattributes.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt
index c4f2be2..4c68bc1 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"::