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

Function outputLines

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

Source from the content-addressed store, hash-verified

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