MCPcopy
hub / github.com/cli/cli / outputLines

Function outputLines

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

Source from the content-addressed store, hash-verified

916}
917
918func outputLines(output []byte) []string {
919 lines := strings.TrimSuffix(string(output), "\n")
920 return strings.Split(lines, "\n")
921}
922
923func firstLine(output []byte) string {
924 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