commit reduction script