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

Method Clone

tools/stringset.go:167–173  ·  view source on GitHub ↗

Returns a clone of the set. Does NOT clone the underlying elements.

()

Source from the content-addressed store, hash-verified

165// Returns a clone of the set.
166// Does NOT clone the underlying elements.
167func (set StringSet) Clone() StringSet {
168 clonedSet := NewStringSet()
169 for elem := range set {
170 clonedSet.Add(elem)
171 }
172 return clonedSet
173}

Callers 3

TestOrderedSetCloneFunction · 0.45
migrateImportCommandFunction · 0.45
migrateExportCommandFunction · 0.45

Calls 2

AddMethod · 0.95
NewStringSetFunction · 0.85

Tested by 1

TestOrderedSetCloneFunction · 0.36