Re: Git EOL Normalization
- From
- Stephen Bash <bash@genarts.com>
- Date
- May 26, 2011, 16:28 UTC
- Message-ID
- <22629514.41388.1306427328539.JavaMail.root@mail.hq.genarts.com>
- In-Reply-To
- <7v1uzlzbra.fsf@alter.siamese.dyndns.org>
----- Original Message -----
Show 12 quoted lines
> From: "Junio C Hamano" <gitster@pobox.com> > To: "Jakub Narebski" <jnareb@gmail.com> > 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