commit: discard index after setting up partial commit