From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Cc: Raimund Bauer <ray007@gmx.net>
Subject: Re: autocrlf
Date: Fri, 18 May 2007 13:01:18 +0100 [thread overview]
Message-ID: <200705181301.25749.andyparkins@gmail.com> (raw)
In-Reply-To: <1179484482.6453.19.camel@localhost>
On Friday 2007 May 18, Raimund Bauer wrote:
> you need to set core.autoCrlf=input
>
> I had the same problem some time ago ...
The documentation says:
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. Currently, which paths to consider
"text" (i.e. be subjected to the autocrlf mechanism) is
decided purely based on the contents.
That is: "input" ensures that CRLF is stripped on input to the repository.
While that is fine in some circumstances, the situation I'm describing here
is what happens on output from the repository.
Andy
--
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
next prev parent reply other threads:[~2007-05-18 12:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-18 10:11 autocrlf Andy Parkins
2007-05-18 10:34 ` autocrlf Raimund Bauer
2007-05-18 12:01 ` Andy Parkins [this message]
2007-05-18 11:45 ` autocrlf Johannes Sixt
2007-05-18 12:32 ` autocrlf Andy Parkins
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200705181301.25749.andyparkins@gmail.com \
--to=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
--cc=ray007@gmx.net \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox