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.