Re: CRLF, LF ... CR ?
- From
Erik Faye-Lund <kusmabite@gmail.com>
- Date
- Sep 13, 2012, 15:43 UTC
- Message-ID
- <CABPQNSZ4Mh02xmbJPubhW9XDbTeYqg3LXLz+s=7DtKRt5AvJkg@mail.gmail.com>
- In-Reply-To
- <1347550490.24469.54.camel@drew-northup.unet.maine.edu>
On Thu, Sep 13, 2012 at 5:34 PM, Drew Northup <drew.northup@maine.edu> wrote:
Show 18 quoted lines
> On Thu, 2012-09-13 at 17:09 +0200, Jens Bauer wrote: >> Hi everyone. >> >> I'm quite fond of git, and have used it for a while. >> Recently, I've started making printed circuit boards (PCBs) using an application called OsmondPCB (for Mac), and I'd like to use git to track changes on these. >> This application was originally written for the old Mac OS (Mac OS 6 to Mac OS 9.2). >> The old Mac OS does not use LF, nor CRLF for line endings, but only CR. >> >> I've read that git supports two different line endings; either CRLF or LF, but it does not support CR. >> Would it make sense to add support for CR (if so, I hereby request it as a new feature) ? > > Jens, > Even if Git can't do CRLF/LF translation on a file it will still store > and track the content of it it just fine. In fact you probably want > translation completely disabled in this case. > > (Given that you seem to be working on a Mac I suspect that "disabled" is > likely the default setting for that configuration item.)
This might be less than ideal, because diffing and merging will break.
Perhaps clean/smudge filters can be used instead? That way you can have CR on disk and LF in the repo.