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

Function outputLines

git/client.go:980–983  ·  view source on GitHub ↗
(output []byte)

Source from the content-addressed store, hash-verified

978}
979
980func outputLines(output []byte) []string {
981 lines := strings.TrimSuffix(string(output), "\n")
982 return strings.Split(lines, "\n")
983}
984
985func firstLine(output []byte) string {
986 if i := bytes.IndexAny(output, "\n"); i >= 0 {

Callers 3

RemotesMethod · 0.85
ShowRefsMethod · 0.85
ReadBranchConfigMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected