trim commits