MCPcopy Create free account
hub / github.com/cli/cli / clone

Method clone

pkg/cmd/pr/shared/editable.go:312–321  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310}
311
312func (es *EditableString) clone() EditableString {
313 return EditableString{
314 Value: es.Value,
315 Default: es.Default,
316 Edited: es.Edited,
317 Selectable: es.Selectable,
318 // Shallow copies since no mutation.
319 Options: es.Options,
320 }
321}
322
323func (es *EditableSlice) clone() EditableSlice {
324 cpy := EditableSlice{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected