git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
* core.autocrlf=true replaces LF with CRLF on Linux
@ 2012-10-08 17:03 Dun Peal
  0 siblings, 0 replies; only message in thread
From: Dun Peal @ 2012-10-08 17:03 UTC (permalink / raw)
  To: Git ML

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-08 17:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-08 17:03 core.autocrlf=true replaces LF with CRLF on Linux Dun Peal

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).