Test that workdir diffs, when presented with UPDATE_INDEX, only write the index when they actually make a change.