Re: Schrödinger's diff
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 8, 2009, 02:54 UTC
- Message-ID
- <7v8wizanqr.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <279b37b20907071717r71f982b6u7333ff10fadfc39@mail.gmail.com>
Eric Raible <raible@gmail.com> writes:
> So what's the best way of "fixing once and for all" a repo infected with > carriage returns when you want to use autocrlf=true moving forward?
Didn't "rm -f .git/index && git reset --hard HEAD" work?
> And a hopefully less annoying one: > > Would you accept a patch explaining how "git reset --hard" doesn't > actually rebuild the index from scratch,...
Absolutely.
> ... and how "git read-head" might > be recommended in some weird situations?
I am less certain about that; people may have easier-to-read solution than the one with read-tree, I would suspect.