Skip to content

Commit 5cb71f8

Browse files
flichtenheldJunio C Hamano
authored andcommitted
config.txt: Document core.autocrlf
Text shamelessly stolen from the 1.5.1 release notes. Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent eabb0bf commit 5cb71f8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Documentation/config.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ core.fileMode::
117117
the working copy are ignored; useful on broken filesystems like FAT.
118118
See gitlink:git-update-index[1]. True by default.
119119

120+
core.autocrlf::
121+
If true, makes git convert `CRLF` at the end of lines in text files to
122+
`LF` when reading from the filesystem, and convert in reverse when
123+
writing to the filesystem. The variable can be set to
124+
'input', in which case the conversion happens only while
125+
reading from the filesystem but files are written out with
126+
`LF` at the end of lines. Currently, which paths to consider
127+
"text" (i.e. be subjected to the autocrlf mechanism) is
128+
decided purely based on the contents.
129+
120130
core.symlinks::
121131
If false, symbolic links are checked out as small plain files that
122132
contain the link text. gitlink:git-update-index[1] and

0 commit comments

Comments
 (0)