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

git cat-file blob does not convert crlf

From
QHQuim K. Holland <qkholland@gmail.com>
Date
Nov 26, 2008, 19:34 UTC
Message-ID
<20081127013456.6117@qkholland.gmail.com>

I think git is buggy. I wanted to discard the changes I made to my file by checking out a copy from the last commit, so I said % git cat-file blob HEAD:my-file >my-file But this does not respect core.autocrlf and the file becomes one long line. Also it feels stupid that I have to say my-file twice at the command prompt.

Next: Junio C Hamano
Message 1 of 3 in “git cat-file blob does not convert crlf”
  1. Quim K. HollandNov 26, 2008
  2. Junio C HamanoNov 26, 2008
  3. Johannes SchindelinNov 27, 2008

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.