Code

[PATCH] Re-instate index file write optimization
authorLinus Torvalds <torvalds@osdl.org>
Sat, 1 Oct 2005 20:39:47 +0000 (13:39 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 2 Oct 2005 06:56:16 +0000 (23:56 -0700)
commit5cd5ace72bf8944c920a20a7b98c82f7ed663d8a
treebdf8f047c166f588403414c2c7b807ceefc92338
parent5d1a5c02e8ac1c16688ea4a44512245f25a49f8a
[PATCH] Re-instate index file write optimization

This makes "git-update-index" avoid the new index file write if it didn't
make any changes to the index.

It still doesn't make things like "git status" be read-only operations in
general, but if the index file doesn't need refreshing, it now will at
least avoid making unnecessary changes.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
update-index.c