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

Function HashesSort

plumbing/hash.go:63–65  ·  view source on GitHub ↗

HashesSort sorts a slice of Hashes in increasing order.

(a []Hash)

Source from the content-addressed store, hash-verified

61
62// HashesSort sorts a slice of Hashes in increasing order.
63func HashesSort(a []Hash) {
64 sort.Sort(HashSlice(a))
65}
66
67// HashSlice attaches the methods of sort.Interface to []Hash, sorting in
68// increasing order.

Callers 10

genObjectListMethod · 0.92
EncodeMethod · 0.92
EncodeMethod · 0.92
encodeShallowsMethod · 0.92
TestDecodeWithLFMethod · 0.92
TestDecodeMethod · 0.92
TestDecodeUnshallowMethod · 0.92
prepareMethod · 0.92
prepareMethod · 0.92
TestHashesSortMethod · 0.85

Calls 1

HashSliceTypeAlias · 0.85

Tested by 4

TestDecodeWithLFMethod · 0.74
TestDecodeMethod · 0.74
TestDecodeUnshallowMethod · 0.74
TestHashesSortMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…