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

Re: [PATCH] Racy GIT

From
Junio C Hamano <junkio@cox.net>
Date
Dec 20, 2005, 19:28 UTC
Message-ID
<7vr787h8ku.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vwti0go2w.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
> This fixes the longstanding "Racy GIT" problem,...
Sorry, it does not really.
Show 5 quoted lines
> If you run the following sequence of commands:
>
>         echo frotz >infocom
>         git update-index --add infocom
>         echo xyzzy >infocom

The patch deals with the above sequence correctly, but it breaks down with:

	echo frotz >infocom
        git update-index --add infocom
        echo xyzzy >infocom
        sleep 3 ;# a little while later
        echo nitfol >activision
        git update-index --add activision
        git diff-files infocom

We need to detect the false clean entries just before we write out index in the second update-index and mark them out of date.

Previous: Junio C Hamano
Message 2 of 2 in “Racy GIT”
  1. Racy GITJunio C Hamano, Dec 20, 2005
  2. Junio C HamanoDec 20, 2005

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.