MCPcopy Create free account
hub / github.com/go-git/go-git / Less

Method Less

blame.go:514–516  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

512
513func (pq *priorityQueueImp) Len() int { return len(*pq) }
514func (pq *priorityQueueImp) Less(i, j int) bool {
515 return !(*pq)[i].Commit.Less((*pq)[j].Commit)
516}
517func (pq *priorityQueueImp) Swap(i, j int) { (*pq)[i], (*pq)[j] = (*pq)[j], (*pq)[i] }
518func (pq *priorityQueueImp) Push(x any) { *pq = append(*pq, x.(*queueItem)) }
519func (pq *priorityQueueImp) Pop() any {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected