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

Method String

submodule.go:348–355  ·  view source on GitHub ↗

String is equivalent to `git submodule status`

()

Source from the content-addressed store, hash-verified

346
347// String is equivalent to `git submodule status`
348func (s SubmodulesStatus) String() string {
349 buf := bytes.NewBuffer(nil)
350 for _, sub := range s {
351 fmt.Fprintln(buf, sub)
352 }
353
354 return buf.String()
355}
356
357// SubmoduleStatus contains the status for a submodule in the worktree
358type SubmoduleStatus struct {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected