Records changes due to previous commit.