MCPcopy Index your code
hub / github.com/go-git/go-git / Less

Method Less

plumbing/object/tree.go:353–355  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

351}
352
353func (s TreeEntrySorter) Less(i, j int) bool {
354 return treeEntrySortName(&s[i]) < treeEntrySortName(&s[j])
355}
356
357func (s TreeEntrySorter) Swap(i, j int) {
358 s[i], s[j] = s[j], s[i]

Callers

nothing calls this directly

Calls 1

treeEntrySortNameFunction · 0.85

Tested by

no test coverage detected