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
Eyvind Bernhardsen <eyvind.bernhardsen@gmail.com>
Date
May 10, 2010, 19:09 UTC
Message-ID
<99999847-7CFD-4F44-94BE-35AAE8CC9835@gmail.com>
In-Reply-To
<20100510171119.GA17875@pvv.org>
On 10. mai 2010, at 19.11, Finn Arne Gangstad wrote:
Show 10 quoted lines
> Previously, autocrlf would only work well for normalized
> repositories. Any text files that contained CRLF in the repository
> would cause problems, and would be modified when handled with
> core.autocrlf set.
> 
> Change autocrlf to not do any conversions to files that in the
> repository already contain a CR. git with autocrlf set will never
> create such a file, or change a LF only file to contain CRs, so the
> (new) assumption is that if a file contains a CR, it is intentional,
> and autocrlf should not change that.
I'm of two minds about this: on the one hand, it appears to fix autocrlf's biggest problem (that it breaks down when the repository is not normalized), which was the main reason I started working on it in the first place.  On the other hand, it does nothing for the user interface, which was (obviously :) another big motivator.
I'll submit a cleaned-up series with optional extras in a couple of days.
-- 
Eyvind
Previous: Finn Arne GangstadNext: Dmitry Potapov
Message 5 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.