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

Function parseCloneArgs

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

Source from the content-addressed store, hash-verified

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

Callers 2

TestParseCloneArgsFunction · 0.85
CloneMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestParseCloneArgsFunction · 0.68