From c2fd6466cc2d987e1ee4356dbf1a84651f98f370 Mon Sep 17 00:00:00 2001 From: Will Palmer Date: Tue, 13 Apr 2010 22:56:37 +0100 Subject: [PATCH] make description of "core.autocrlf" less ambiguous The description for core.autocrlf refers to reads from / writes to the "filesystem". While the term is used elsewhere in the config documentation to refer to the filesystem git is hosted on, it is not only less clear from context in the case of core.autocrlf, but can also be plain inaccurate in many cases. To make more clear the direction of removal / addition of CR when core.crlf is set, as well as to account for the usage of low-level commands such as hash-object or cat-file, we change "reading from the filesystem" to refer instead to "writing to the object database", and "writing to the filesystem" to "output or writing to the work tree" Signed-off-by: Will Palmer --- Documentation/config.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/config.txt b/Documentation/config.txt index 626b19ac93..125e9d56a0 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -198,11 +198,11 @@ core.quotepath:: 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. A file is considered + `LF` when writing into the object database, and convert in reverse when + outputting those files or writing them to the work tree. The variable + can be set to 'input', in which case the conversion happens only while + writing into the object database, but files are output and written to the + work tree with `LF` at the end of lines. A file is considered "text" (i.e. be subjected to the autocrlf mechanism) based on the file's `crlf` attribute, or if `crlf` is unspecified, based on the file's contents. See linkgit:gitattributes[5]. -- 2.11.4.GIT