diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-07-25 15:49:42 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-25 15:49:42 -0700 |
commit | eed15affdc439fd40e863849b0a56b93c58690ac (patch) | |
tree | ecf7d886571027e8cc5a7007bdf835635d28a1a8 /gitattributes.txt | |
parent | 1a1b8478e1973c7362e8f5f6b2fc1f56b2a25204 (diff) | |
download | git-htmldocs-eed15affdc439fd40e863849b0a56b93c58690ac.tar.gz |
Autogenerated HTML docs for v2.9.2-466-g8c6d1
Diffstat (limited to 'gitattributes.txt')
-rw-r--r-- | gitattributes.txt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gitattributes.txt b/gitattributes.txt index 8882a3e91..b40068bdf 100644 --- a/gitattributes.txt +++ b/gitattributes.txt @@ -115,6 +115,7 @@ text file is normalized, its line endings are converted to LF in the repository. To control what line ending style is used in the working directory, use the `eol` attribute for a single file and the `core.eol` configuration variable for all text files. +Note that `core.autocrlf` overrides `core.eol` Set:: @@ -130,8 +131,9 @@ Unset:: Set to string value "auto":: When `text` is set to "auto", the path is marked for automatic - end-of-line normalization. If Git decides that the content is - text, its line endings are normalized to LF on checkin. + end-of-line conversion. If Git decides that the content is + text, its line endings are converted to LF on checkin. + When the file has been commited with CRLF, no conversion is done. Unspecified:: @@ -146,7 +148,7 @@ unspecified. ^^^^^ This attribute sets a specific line-ending style to be used in the -working directory. It enables end-of-line normalization without any +working directory. It enables end-of-line conversion without any content checks, effectively setting the `text` attribute. Set to string value "crlf":: @@ -186,9 +188,10 @@ the working directory, and prevent .jpg files from being normalized regardless of their content. ------------------------ +* text=auto *.txt text -*.vcproj eol=crlf -*.sh eol=lf +*.vcproj text eol=crlf +*.sh text eol=lf *.jpg -text ------------------------ @@ -198,7 +201,7 @@ normalization in Git. If you simply want to have CRLF line endings in your working directory regardless of the repository you are working with, you can set the -config variable "core.autocrlf" without changing any attributes. +config variable "core.autocrlf" without using any attributes. ------------------------ [core] |