check what commits have been done on a branch