MCPcopy
hub / github.com/cli/cli / parseCloneArgs

Function parseCloneArgs

git/client.go:930–938  ·  view source on GitHub ↗
(extraArgs []string)

Source from the content-addressed store, hash-verified

928}
929
930func parseCloneArgs(extraArgs []string) (args []string, target string) {
931 args = extraArgs
932 if len(args) > 0 {
933 if !strings.HasPrefix(args[0], "-") {
934 target, args = args[0], args[1:]
935 }
936 }
937 return
938}
939
940func parseRemotes(remotesStr []string) RemoteSet {
941 remotes := RemoteSet{}

Callers 2

TestParseCloneArgsFunction · 0.85
CloneMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestParseCloneArgsFunction · 0.68