Thread (1 message) 1 message, 1 author, 2016-06-15
  • (off-list ancestor, not in this archive)
  • Re: [PATCH] Racy GIT · Junio C Hamano <hidden> · 2016-06-15

Re: [PATCH] Racy GIT

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:15

Junio C Hamano [off-list ref] writes:
This fixes the longstanding "Racy GIT" problem,...
Sorry, it does not really.
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help