From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Cc: Johannes Sixt <J.Sixt@eudaptics.com>
Subject: Re: autocrlf
Date: Fri, 18 May 2007 13:32:54 +0100 [thread overview]
Message-ID: <200705181332.55228.andyparkins@gmail.com> (raw)
In-Reply-To: <464D91E7.FB3F9B4@eudaptics.com>
On Friday 2007 May 18, Johannes Sixt wrote:
> > What actually happens is that any file with the crlf attribute is being
> > checked out with LF expanded to CRLF (I'm running Linux of course), which
> > is completely not what I wanted.
>
> If I understand the documentation correctly
> (Documentation/gitattributes.txt) then you set core.autocrlf to true on
> Windows and false everywhere else, and things should start working like
> you imagined.
Presumably then it is defaulting to false for Linux as everything is working
fine for me at present. However, that is not the case when I set the crlf
attribute.
Documentation/gitattributes.txt:
This attribute controls the line-ending convention.
Set::
Setting the `crlf` attribute on a path is meant to mark
the path as a "text" file. 'core.autocrlf' conversion
takes place without guessing the content type by
inspection.
I read that as meaning the automatic detection of file type is overridden by
the crlf attribute. What I'm actually seeing is that it has the same effect
as enabling "autocrlf = true" for that file. As you say "autocrlf = true" is
for windows, the crlf attribute should not be forcing it on as that then
applies to all platforms.
I think this is a bug. The code agrees with the observed behaviour but not
with the documentation. Patch to follow.
Andy
--
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
prev parent reply other threads:[~2007-05-18 12:33 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 ` autocrlf Andy Parkins
2007-05-18 11:45 ` autocrlf Johannes Sixt
2007-05-18 12:32 ` Andy Parkins [this message]
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=200705181332.55228.andyparkins@gmail.com \
--to=andyparkins@gmail.com \
--cc=J.Sixt@eudaptics.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox