refactor the commit file