Re: [PATCH 3/4] gitfaq: give advice on using eol attribute in gitattributes
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 20, 2021, 12:02 UTC
- Message-ID
- <nycvar.QRO.7.76.6.2110201400020.56@tvgsbejvaqbjf.bet>
- In-Reply-To
- <YW9wgbN/b8NkVp4z@camp.crustytoothpaste.net>
Hi brian,
On Wed, 20 Oct 2021, brian m. carlson wrote:
Show 18 quoted lines
> On 2021-10-20 at 01:21:40, Eric Sunshine wrote: > > On Tue, Oct 19, 2021 at 9:06 PM brian m. carlson > > <sandals@crustytoothpaste.net> wrote: > > > > > diff --git a/Documentation/gitfaq.txt b/Documentation/gitfaq.txt > > > @@ -464,14 +465,25 @@ references, URLs, and hashes stored in the repository. > > > +With text files, Git will generally the repository contains LF endings in the > > > +repository, and will honor `core.autocrlf` and `core.eol` to decide what options > > > +to use when checking files out. You can also override this by specifying a > > > +particular line ending such as `eol=lf` or `eol=crlf` if those files must always > > > +have that ending (e.g., for functionality reasons). > > > > The first sentence in the paragraph is unparseable. > > Yes, I think perhaps I omitted the word "ensure". > > And I should reflect that they should have that ending in the working > tree, which I neglected to mention.
Please note that Git for Windows defaults to `core.autoCRLF=true`, therefore this sentence is not completely correct. Maybe something as short as "(except in Git for Windows, which defaults to CRLF endings)" would suffice?
Ciao, Dscho