Updates logic for creating a commit.