From: Stephen Bash Date: Thu, 26 May 2011 16:28:48 GMT Subject: Re: Git EOL Normalization Message-ID: <22629514.41388.1306427328539.JavaMail.root@mail.hq.genarts.com> In-Reply-To: <7v1uzlzbra.fsf@alter.siamese.dyndns.org> ----- Original Message ----- > From: "Junio C Hamano" > To: "Jakub Narebski" > Sent: Thursday, May 26, 2011 12:07:21 PM > Subject: Re: Git EOL Normalization > > > I think git examines only first block of a file or so. The heuristic > > to detect binary-ness of a file is, as I have heard, the same or > > similar to the one that GNU diff uses. > > Yes, the binary detection was designed to be compatible with GNU diff. But > I do not think it has much to do with the topic of this thread. Aren't > other people discussing the line ending? The binary detection may be apropos because there are situations (core.autocrlf={true,input} and text=auto) where Git will only do line ending conversion if it detects a text file... But I'll leave it to people who know the code better to say if this binary detection is in fact part of the decision process. Thanks, Stephen