commit --interactive: properly update the index before commiting