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

Function firstLine

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

Source from the content-addressed store, hash-verified

981}
982
983func firstLine(output []byte) string {
984 if i := bytes.IndexAny(output, "\n"); i >= 0 {
985 return string(output)[0:i]
986 }
987 return string(output)
988}
989
990func parseCloneArgs(extraArgs []string) (args []string, target string) {
991 args = extraArgs

Callers 7

CurrentBranchMethod · 0.70
ConfigMethod · 0.70
parsePushRevisionFunction · 0.70
ToplevelDirMethod · 0.70
GitDirMethod · 0.70
PathFromRootMethod · 0.70
RemoteURLMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected