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

Re: [msysgit? bug] crlf double-conversion on win32

From
EREric Raible <raible@gmail.com>
Date
Oct 14, 2009, 18:17 UTC
Message-ID
<279b37b20910141117s7980c249tab4565c93b389df3@mail.gmail.com>
In-Reply-To
<alpine.DEB.1.00.0910141601580.4985@pacific.mpi-cbg.de>

On Wed, Oct 14, 2009 at 7:03 AM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Show 20 quoted lines
> 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.

Previous: Laurent BoulardNext: Junio C Hamano
Message 5 of 7 in “[msysgit? bug] crlf double-conversion on win32”
  1. Yann DirsonOct 13, 2009
  2. Eric RaibleOct 13, 2009
  3. Johannes SchindelinOct 14, 2009
  4. Laurent BoulardOct 14, 2009
  5. Eric RaibleOct 14, 2009
  6. Junio C HamanoOct 14, 2009
  7. Eric RaibleOct 14, 2009

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.