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

Re: [PATCH 3/3] Revert "git-svn: always initialize with core.autocrlf=false"

From
EWEric Wong <normalperson@yhbt.net>
Date
Mar 4, 2010, 09:53 UTC
Message-ID
<20100304095350.GB12885@dcvr.yhbt.net>
In-Reply-To
<40aa078e1003031216l5d164654ta8ff7ea6c8cf2162@mail.gmail.com>
Erik Faye-Lund <kusmabite@googlemail.com> wrote:
Show 10 quoted lines
> On Wed, Mar 3, 2010 at 9:10 PM, Erik Faye-Lund <kusmabite@googlemail.com> wrote:
> > git-svn dcommit uses diff-tree (which does not apply CRLF conversion) to
> > generate SVN commits, so there never were any CRLF conversion issues when
> > commiting in the first place.
> 
> Uhm, this comment is slightly wrong. diff-tree is used to find out if
> there's a change in a file at all. cat_blob(), which in turn uses "git
> cat-file", is used to get the file contents.
> 
> Sorry for the noise.
Hi Erik,

Yes, diff-tree is only used to find changed paths, not the actual content changes. git svn always uses entire blobs from cat-file.

So cat-file won't do CRLF conversions at all, meaning this change is safe for previously created repos, correct? If so, consider patches 2/3 and 3/3 acked by me.

1/3 looks alright, too, but I'll wait for Dmitry as I've never hacked on (builtin-)hash-object.c

-- 
Eric Wong
Previous: Erik Faye-LundNext: Erik Faye-Lund
Message 5 of 9 in “hash-object: support --stdin-paths with --no-filters”
  1. 1/3 hash-object: support --stdin-paths with --no-filtersErik Faye-Lund, Mar 3, 2010
  2. 2/3 git-svn: support fetch with autocrlf onErik Faye-Lund, Mar 3, 2010
  3. 3/3 Revert "git-svn: always initialize with core.autocrlf=false"Erik Faye-Lund, Mar 3, 2010
  4. Erik Faye-LundMar 3, 2010
  5. Eric WongMar 4, 2010
  6. Erik Faye-LundMar 4, 2010
  7. Dmitry PotapovMar 4, 2010
  8. Junio C HamanoMar 4, 2010
  9. Eric WongMar 5, 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.