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

Function NewStringSetWithCapacity

tools/stringset.go:21–23  ·  view source on GitHub ↗

Creates and returns a reference to an empty set with a capacity.

(capacity int)

Source from the content-addressed store, hash-verified

19
20// Creates and returns a reference to an empty set with a capacity.
21func NewStringSetWithCapacity(capacity int) StringSet {
22 return make(StringSet, capacity)
23}
24
25// Creates and returns a reference to a set from an existing slice
26func NewStringSetFromSlice(s []string) StringSet {

Callers 4

pruneFunction · 0.92
downloadMixedFunction · 0.92
uploadMixedFunction · 0.92
NewStringSetFromSliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected