MCPcopy
hub / github.com/git-lfs/git-lfs / OrderedSet

Struct OrderedSet

tools/ordered_set.go:4–10  ·  view source on GitHub ↗

OrderedSet is a unique set of strings that maintains insertion order.

Source from the content-addressed store, hash-verified

2
3// OrderedSet is a unique set of strings that maintains insertion order.
4type OrderedSet struct {
5 // s is the set of strings that we're keeping track of.
6 s []string
7 // m is a mapping of string value "s" into the index "i" that that
8 // string is present in in the given "s".
9 m map[string]int
10}
11
12// NewOrderedSet creates an ordered set with no values.
13func NewOrderedSet() *OrderedSet {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected