git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-archive and core.eol

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Jan 10, 2011, 13:00 UTC
Message-ID
<AANLkTi=WyzVzPkhOAMC2A8Dd=Zj_P-7YMVP-GaUz0-Qm@mail.gmail.com>
In-Reply-To
<AANLkTinxVCQuTMeKHQ9mLbs=94fck90rwJwa1DhzGPmX@mail.gmail.com>
On Mon, Jan 10, 2011 at 1:11 PM, Erik Faye-Lund <kusmabite@gmail.com> wrote:
> test. So now I've got to figure out what is different between your
> test and mine. Perhaps I misdiagnosed to begin with?
>

No, it doesn't quite seem like I misdiagnosed, but your test had different expectations than I have after reading the documentation. I expected core.autocrlf=true + core.eol=lf to pretty much be identical to core.autocrlf=false, but only because LF->LF conversion is a NOP.

'core.autocrlf' is documented as meaning the same as setting the 'text' attribute to 'auto' for all files, plus "files that contain CRLF in the repository will not be touched". I figured that last part shouldn't affect me as I only had LFs in the repository.

If I disable core.autocrlf, I get what I want (no matter what I set core.eol to, it seems). But I still don't understand WHY core.autocrlf=true + core.eol=lf outputs CRLF.

It seems to me that there's a big gap between what the documentation claims and what actually happens here.

Previous: Erik Faye-LundNext: René Scharfe
Message 6 of 7 in “git-archive and core.eol”
  1. Erik Faye-LundDec 15, 2010
  2. René ScharfeJan 8, 2011
  3. Erik Faye-LundJan 8, 2011
  4. René ScharfeJan 9, 2011
  5. Erik Faye-LundJan 10, 2011
  6. Erik Faye-LundJan 10, 2011
  7. René ScharfeJan 11, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.