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

Re: [PATCH/RFC] autocrlf: Make it work also for un-normalized repositories

From
Finn Arne Gangstad <finnag@pvv.org>
Date
May 11, 2010, 22:52 UTC
Message-ID
<20100511225202.GC16974@pvv.org>
In-Reply-To
<m37hnbec16.fsf@localhost.localdomain>
On Mon, May 10, 2010 at 01:30:22PM -0700, Jakub Narebski wrote:
> Finn Arne Gangstad <finnag@pvv.org> writes:
> 
> How this feature relates to `core.safecrfl'?

safecrlf is about checking what you add, it does not concern itself about what is already in the repository as far as I can tell.

The safecrlf check will only be done if autocrlf converts a file. For new files autocrlf is unchanged, and safecrlf will complain or die as before. For existing files, you will only be able to get autocrlf to do anything (and thus do the safecrlf check) if the files are normalized to LF only in the repo, or if you have set the crlf attribute on them.

- Finn Arne
Previous: Dmitry Potapov
Message 10 of 10 in “autocrlf: Make it work also for un-normalized repositories”
  1. autocrlf: Make it work also for un-normalized repositoriesFinn Arne Gangstad, May 10, 2010
  2. Johannes SchindelinMay 10, 2010
  3. Junio C HamanoMay 10, 2010
  4. Finn Arne GangstadMay 11, 2010
  5. Eyvind BernhardsenMay 10, 2010
  6. Dmitry PotapovMay 10, 2010
  7. Eyvind BernhardsenMay 11, 2010
  8. Jakub NarebskiMay 10, 2010
  9. Dmitry PotapovMay 10, 2010
  10. Finn Arne GangstadMay 11, 2010

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.