Add a <commit> entry when updating the index