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

Function parseCloneArgs

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

Source from the content-addressed store, hash-verified

990}
991
992func parseCloneArgs(extraArgs []string) (args []string, target string) {
993 args = extraArgs
994 if len(args) > 0 {
995 if !strings.HasPrefix(args[0], "-") {
996 target, args = args[0], args[1:]
997 }
998 }
999 return
1000}
1001
1002func parseRemotes(remotesStr []string) RemoteSet {
1003 remotes := RemoteSet{}

Callers 2

TestParseCloneArgsFunction · 0.85
CloneMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestParseCloneArgsFunction · 0.68