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

Method Less

worktree_commit.go:240–240  ·  view source on GitHub ↗
(i int, j int)

Source from the content-addressed store, hash-verified

238}
239func (se sortableEntries) Len() int { return len(se) }
240func (se sortableEntries) Less(i int, j int) bool { return se.sortName(se[i]) < se.sortName(se[j]) }
241func (se sortableEntries) Swap(i int, j int) { se[i], se[j] = se[j], se[i] }
242
243func (h *buildTreeHelper) copyTreeToStorageRecursive(parent string, t *object.Tree) (plumbing.Hash, error) {

Callers

nothing calls this directly

Calls 1

sortNameMethod · 0.95

Tested by

no test coverage detected