git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Dun Peal <dunpealer@gmail.com>
To: Git ML <git@vger.kernel.org>
Subject: core.autocrlf=true replaces LF with CRLF on Linux
Date: Mon, 8 Oct 2012 10:03:19 -0700	[thread overview]
Message-ID: <CAD03jn41w814XqdFq=PK+AAOQcXZtm0kQrGpobPfA-YULTpkPg@mail.gmail.com> (raw)

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.

                 reply	other threads:[~2012-10-08 17:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAD03jn41w814XqdFq=PK+AAOQcXZtm0kQrGpobPfA-YULTpkPg@mail.gmail.com' \
    --to=dunpealer@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).