On Wed, Oct 14, 2009 at 7:03 AM, Johannes Schindelin <Johannes.Schindelin@xxxxxx> wrote: > Hi, > > On Tue, 13 Oct 2009, Eric Raible wrote: > >> >> See http://thread.gmane.org/gmane.comp.version-control.git/122823/focus=122862 >> >> In which Junio suggests: >> $ rm .git/index >> $ git reset --hard >> >> in order to "restore sanity to your work tree" > > Of course this is insane as a user interface. It is not even plumbing. > > So I started some time ago to code a "git checkout --fix-crlf", but I > am not really happy with the user interface. I think that Git should > realize itself that something went wrong with the line endings. If I say > "git reset --hard", it is just a bug in Git when it insists afterwards > that the files are modified. I fully agree that "git reset --hard" should actually, uh, do a hard reset, as should be clear in the my reply to Junio's suggestion. So I'm not advocating "rm .git/index" as a good solution, but simply one that works. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html