Skip to content

Commit c308b9c

Browse files
wpalmergitster
authored andcommitted
documentation: clarify direction of core.autocrlf
The description for core.autocrlf refers to reads from / writes to "the filesystem", the only use of this rather ambiguous term, which technically could be referring to the git object database. (All other mentions are part of phrases such as "..filesystems (like NFS).."). Other sections, including the section on core.safecrlf, use the term "work tree" for the same purpose as the term "the filesystem" is used in the core.autocrlf section, so that seems like a good alternative, which makes it clearer what direction the addition/removal of CR characters occurs in. Signed-off-by: Will Palmer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f78683f commit c308b9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/config.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ core.quotepath::
198198

199199
core.autocrlf::
200200
If true, makes git convert `CRLF` at the end of lines in text files to
201-
`LF` when reading from the filesystem, and convert in reverse when
202-
writing to the filesystem. The variable can be set to
201+
`LF` when reading from the work tree, and convert in reverse when
202+
writing to the work tree. The variable can be set to
203203
'input', in which case the conversion happens only while
204-
reading from the filesystem but files are written out with
205-
`LF` at the end of lines. A file is considered
204+
reading from the work tree but files are written out to the work
205+
tree with `LF` at the end of lines. A file is considered
206206
"text" (i.e. be subjected to the autocrlf mechanism) based on
207207
the file's `crlf` attribute, or if `crlf` is unspecified,
208208
based on the file's contents. See linkgit:gitattributes[5].

0 commit comments

Comments
 (0)