MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / Clone

Method Clone

tools/ordered_set.go:211–217  ·  view source on GitHub ↗

Clone returns a deep copy of this set.

()

Source from the content-addressed store, hash-verified

209
210// Clone returns a deep copy of this set.
211func (s *OrderedSet) Clone() *OrderedSet {
212 clone := NewOrderedSetWithCapacity(s.Cardinality())
213 for _, i := range s.s {
214 clone.Add(i)
215 }
216 return clone
217}

Callers

nothing calls this directly

Calls 3

CardinalityMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected