Better ref selection in RepositoryLog