MCPcopy Create free account
hub / github.com/go-git/go-git / String

Method String

remote.go:81–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81func (r *Remote) String() string {
82 var fetch, push string
83 if len(r.c.URLs) > 0 {
84 fetch = r.c.URLs[0]
85 push = r.c.URLs[0]
86 }
87
88 return fmt.Sprintf("%s\t%s (fetch)\n%[1]s\t%[3]s (push)", r.c.Name, fetch, push)
89}
90
91// Push performs a push to the remote. Returns NoErrAlreadyUpToDate if the
92// remote was already up-to-date.

Callers 1

TestStringMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestStringMethod · 0.76