git cat-file blob does not convert crlf
- From
- Quim 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.