git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/4] config.txt: Document core.autocrlf

From
Frank Lichtenheld <frank@lichtenheld.de>
Date
Apr 13, 2007, 16:02 UTC
Message-ID
<11764801532182-git-send-email-frank@lichtenheld.de>
In-Reply-To
<11764801533023-git-send-email-frank@lichtenheld.de>
Text shamelessly stolen from the 1.5.1 release notes.
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de>
---
 Documentation/config.txt |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 061c585..09c355b 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -117,6 +117,16 @@ core.fileMode::
 	the working copy are ignored; useful on broken filesystems like FAT.
 	See gitlink:git-update-index[1]. True by default.
 
+core.autocrlf::
+	If true, makes git convert `CRLF` at the end of lines in text files to
+	`LF` when reading from the filesystem, and convert in reverse when
+	writing to the filesystem.  The variable can be set to
+	'input', in which case the conversion happens only while
+    	reading from the filesystem but files are written out with
+    	`LF` at the end of lines.  Currently, which paths to consider
+	"text" (i.e. be subjected to the autocrlf mechanism) is
+	decided purely based on the contents.
+
 core.symlinks::
 	If false, symbolic links are checked out as small plain files that
 	contain the link text. gitlink:git-update-index[1] and
-- 
1.5.1.1
Previous: Frank LichtenheldNext: Frank Lichtenheld
Message 3 of 5 in “Random fixes to Documentation/config.txt”
  1. 0/4 Random fixes to Documentation/config.txtFrank Lichtenheld, Apr 13, 2007
  2. 1/4 config.txt: Document gitcvs.allbinaryFrank Lichtenheld, Apr 13, 2007
  3. 2/4 config.txt: Document core.autocrlfFrank Lichtenheld, Apr 13, 2007
  4. 3/4 config.txt: Change pserver to server in description of gitcvs.*Frank Lichtenheld, Apr 13, 2007
  5. 4/4 config.txt: Fix grammatical error in description of http.noEPSVFrank Lichtenheld, Apr 13, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.