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

Function outputLines

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

Source from the content-addressed store, hash-verified

979}
980
981func outputLines(output []byte) []string {
982 lines := strings.TrimSuffix(string(output), "\n")
983 return strings.Split(lines, "\n")
984}
985
986func firstLine(output []byte) string {
987 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