From: Johannes Sixt <j.sixt@viscovery.net>
To: Chris Harris <ryguasu@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Is the "text" attribute meant *only* to specify end-of-line normalization behavior, or does it have broader implications?
Date: Fri, 30 Mar 2012 08:42:04 +0200 [thread overview]
Message-ID: <4F7555BC.1000804@viscovery.net> (raw)
In-Reply-To: <CANSc5vG0o_eAn7X39XhCzUoN4ab52pGCP+PvzOQCyTV31R8LGg@mail.gmail.com>
Am 3/30/2012 4:19, schrieb Chris Harris:
> I'm starting a new repository for a Windows-only project where I don't
> think I want git to do any end-of-line normalization on my text files.
> (I'm totally happy to have CRLFs both in the repo and in all the
> working copies.)
The question is rather: Are you happy if someone commits a file that does
*not* have CRLF, but only LF?
Because if you don't care, you are better off setting no attributes and no
core.autocrlf and no core.eol at all. The git will take the file
unmodified. If someone's editor changes the eol style of a file, it will
be noticed because the diff will show that the entire file has changed.
Your team mates should better have enough discipline not to ignore such a
hint that something's gone awry, of course.
> Unless you think that end-of-line normalization is
> always vital, let's try to presume I've made the right choice about
> this.
It's your code, you are to judge what is best for you. IOW, I don't think
that eol normalization is "always vital", and you are right. :-)
(I didn't answer the question in the subject of your message, and I can't;
I don't use the text attribute nor eol normalization, even though I work
on Windows quite a lot.)
-- Hannes
next prev parent reply other threads:[~2012-03-30 6:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-30 2:19 Is the "text" attribute meant *only* to specify end-of-line normalization behavior, or does it have broader implications? Chris Harris
2012-03-30 6:42 ` Johannes Sixt [this message]
2012-03-30 7:25 ` Jeff King
2012-03-30 17:49 ` Chris Harris
2012-03-30 18:22 ` Junio C Hamano
2012-03-30 21:30 ` Jeff King
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=4F7555BC.1000804@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=git@vger.kernel.org \
--cc=ryguasu@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).