author | Eyvind Bernhardsen <eyvind.bernhardsen@gmail.com> | |
Wed, 19 May 2010 20:43:10 +0000 (22:43 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 20 May 2010 03:36:15 +0000 (20:36 -0700) | ||
commit | fd6cce9e89ab5ac1125a3b5f5611048ad22379e7 | |
tree | 4c7f3223c70f7153d6f174df1d84345f90b1aaf9 | tree | snapshot |
parent | 56499eb9b84453742222676d98e11be3c390c34d | commit | diff |
Add per-repository eol normalization
Change the semantics of the "crlf" attribute so that it enables
end-of-line normalization when it is set, regardless of "core.autocrlf".
Add a new setting for "crlf": "auto", which enables end-of-line
conversion but does not override the automatic text file detection.
Add a new attribute "eol" with possible values "crlf" and "lf". When
set, this attribute enables normalization and forces git to use CRLF or
LF line endings in the working directory, respectively.
The line ending style to be used for normalized text files in the
working directory is set using "core.autocrlf". When it is set to
"true", CRLFs are used in the working directory; when set to "input" or
"false", LFs are used.
Signed-off-by: Eyvind Bernhardsen <eyvind.bernhardsen@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Change the semantics of the "crlf" attribute so that it enables
end-of-line normalization when it is set, regardless of "core.autocrlf".
Add a new setting for "crlf": "auto", which enables end-of-line
conversion but does not override the automatic text file detection.
Add a new attribute "eol" with possible values "crlf" and "lf". When
set, this attribute enables normalization and forces git to use CRLF or
LF line endings in the working directory, respectively.
The line ending style to be used for normalized text files in the
working directory is set using "core.autocrlf". When it is set to
"true", CRLFs are used in the working directory; when set to "input" or
"false", LFs are used.
Signed-off-by: Eyvind Bernhardsen <eyvind.bernhardsen@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt | diff | blob | history | |
Documentation/gitattributes.txt | diff | blob | history | |
cache.h | diff | blob | history | |
config.c | diff | blob | history | |
convert.c | diff | blob | history | |
environment.c | diff | blob | history | |
t/t0025-crlf-auto.sh | diff | blob | history |