change list to contain only commit objet