Do not write out new index if nothing has changed.
commitc4b83e618f1df7d8ecc9392fa40e5bebccbe6b5a
authorJunio C Hamano <junkio@cox.net>
Thu, 5 May 2005 22:29:06 +0000 (5 15:29 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 5 May 2005 22:29:06 +0000 (5 15:29 -0700)
treedfb527d0821f06e8fb1c08eaedd150a4530ab8e7
parented4eeaf203d0f293bd5ffc2a0ad8711f052db1f3
Do not write out new index if nothing has changed.

The git-update-cache command, especially with --refresh, may not change
anything.  In such a case, writing 1.6MB of the same thing is a waste.

Signed-off-by: Junio C Hamano <junkio@cox.net>
update-cache.c