From: Johannes Sixt Date: Sun, 01 Oct 2017 20:58:37 GMT Subject: Re: what is git's position on "classic" mac -only end of lines? Message-ID: In-Reply-To: Am 01.10.2017 um 21:29 schrieb Bryan Turner: > On Sun, Oct 1, 2017 at 10:52 AM, Robert P. J. Day wrote: >> >> sorry for more pedantic nitpickery, but i'm trying to write a >> section on how to properly process mixtures of EOLs in git, and when i >> read "man git-config", everything seems to refer to Mac OS X and macOS >> (and linux, of course) using for EOL, with very little mention of >> what one does if faced with "classic" mac EOL of just . > > No command in Git that I'm aware of considers a standalone to be > a line ending. A file containing only s is treated as a single > line by every Git command I've used. I'm not sure whether that > behavior is configurable. For files with standalone s mixed with > other line endings ( or , either or both), the and > endings are both considered line endings while the standalone > s are not. That's true, AFAIK. In addition, when Git auto-detects whether a file is binary or text, then a file with a bare CR is treated as binary: https://github.com/git/git/blob/master/convert.c#L91 That basically amounts to: "it [is] considered not important enough to deal with" ;) -- Hannes