diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-02-11 16:55:57 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-11 16:55:57 -0800 |
commit | 8db2f665e1b25c2e88ddb00b402a4aa3b73a4cf4 (patch) | |
tree | 1d29355e3df139e3b137aa577c42ee8ef74b6ef7 /Documentation | |
parent | The second batch for 2.36 (diff) | |
parent | docs: correct documentation about eol attribute (diff) | |
download | tgif-8db2f665e1b25c2e88ddb00b402a4aa3b73a4cf4.tar.xz |
Merge branch 'bc/clarify-eol-attr'
Doc and test update around the eol attribute.
* bc/clarify-eol-attr:
docs: correct documentation about eol attribute
t0027: add tests for eol without text in .gitattributes
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/gitattributes.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt index 83fd4e19a4..60984a4682 100644 --- a/Documentation/gitattributes.txt +++ b/Documentation/gitattributes.txt @@ -160,11 +160,12 @@ 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. 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. +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. Set to string value "crlf":: |