Re: Git on Windows, CRLF issues
- From
Jeff King <peff@peff.net>
- Date
- Apr 23, 2008, 08:10 UTC
- Message-ID
- <20080423081025.GB11935@sigill.intra.peff.net>
- In-Reply-To
- <Pine.LNX.4.64.0804230806220.18401@ds9.cixit.se>
On Wed, Apr 23, 2008 at 08:11:49AM +0100, Peter Karlsson wrote:
Show 9 quoted lines
> I ended up doing CRLF conversion for most of the repositories I had > converted. Fortunately, most of them had a single branch, so after > having created a small script that did CRLF->LF for the text files, I > could do a > > git filter-branch --tree-filter 'c:/temp/crlf2lf.sh' \ > --tag-name-filter 'cat' HEAD > > on each repository and get everything converted during my lunch break.
Sure, but that is quite slow on a larger tree, since it has to do a full checkout for each commit. The idea of the specialized filter was to avoid that. But if your project was small enough to do it that way, that certainly works.
Show 9 quoted lines
> What I couldn't figure out is why, after converting everything, > removing all references to the repositories I cloned from, and removing > references to the old objects in the reflogs, why > > git fsck --unreachable > > did not report any unreachable objects? I would have guessed the entire > old history and its objects would now be invalidated and could be > killed off.
Did you remove refs/original/ ?
-Peff