MCPcopy Create free account
hub / github.com/entireio/git-sync / splitCSV

Function splitCSV

cmd/git-sync/flags.go:108–118  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

106}
107
108func splitCSV(value string) []string {
109 parts := strings.Split(value, ",")
110 out := make([]string, 0, len(parts))
111 for _, part := range parts {
112 part = strings.TrimSpace(part)
113 if part != "" {
114 out = append(out, part)
115 }
116 }
117 return out
118}
119
120type protocolMode gitsync.ProtocolMode
121type operationMode gitsync.OperationMode

Callers 3

newSyncLikeCmdFunction · 0.70
newFetchCmdFunction · 0.70
newBootstrapCmdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected