core.autocrlf=true replaces LF with CRLF on Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The docs indicate that core.autoccrlf=true will only replace LF with
CRLFs if the runtime platform native line-endings are CRLF, since
core.eol defaults to native. I have gone a step further on my box and
set core.eol to "lf", and still get the same result: conversion of LFs
to CRLFs on a newly created file. Full reproduction:

$ cat /etc/redhat-release; git --version
Fedora release 17 (Beefy Miracle)
git version 1.7.11.2
$ git config -l
core.autocrlf=true
core.eol=lf
$ rm -rf test; mkdir test; cd test; git init; echo bar >foo.txt; git add foo.txt
Initialized empty Git repository in /tmp/test/.git/
warning: LF will be replaced by CRLF in foo.txt.
The file will have its original line endings in your working directory.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]