From: Johannes Schindelin <johannes.schindelin@gmx.de>
To: Rusi Mody <rustompmody@gmail.com>
Cc: msysgit@googlegroups.com, Git Mailing List <git@vger.kernel.org>
Subject: Re: [msysGit] crlf issues
Date: Fri, 19 Jun 2015 16:10:54 +0200 [thread overview]
Message-ID: <b1d861878d2f0a4414490439bf865cbb@www.dscho.org> (raw)
In-Reply-To: <f96f4550-af8c-48b9-98ef-2c1f3282d8a7@googlegroups.com>
Hi Rusi,
Cc:ing the main Git list, as some of this has been discussed at the GitMerge in Paris, and some participants of that discussion might want to join this thread.
On 2015-06-19 14:55, Rusi Mody wrote:
> Trying to setup git.
> Majority folks are MS VS users but also some *nixers.
>
> My current understanding/analysis of the situation:
>
> 1. autocrlf is broken -- keep it false
> 2. safecrlf is a cure (to some extent) -- keep it true
> 3. core.eol can be left native (or is crlf on windows/lf on *nix
> preferred??)
>
> And of course most crucial:
> 4. Make sure ALL file types are covered in .gitattributes; eg
>
> *.txt text
> *.cs text
> :
> :
> *.pdf binary
> etc
>
> Still when we get a merge conflict the file (created by git with conflict
> markers) shows ^M in vi
> ie I assume its unclean line endings.
>
> Any tips what to do?
The most important preliminary question is: how cross platform is your project? If there is no risk of any developer working on a non-Windows platform, you could simply commit CRLF and be done with it.
As to autocrlf: I actually had some good experience with setting it to `input` when working with other developers.
Ciao,
Johannes
next parent reply other threads:[~2015-06-19 14:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <f96f4550-af8c-48b9-98ef-2c1f3282d8a7@googlegroups.com>
2015-06-19 14:10 ` Johannes Schindelin [this message]
2015-06-19 15:29 ` crlf issues Rusi Mody
2015-06-20 6:21 ` Rusi Mody
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=b1d861878d2f0a4414490439bf865cbb@www.dscho.org \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=msysgit@googlegroups.com \
--cc=rustompmody@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).