MCPcopy
hub / github.com/cli/cli / firstLine

Function firstLine

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

Source from the content-addressed store, hash-verified

921}
922
923func firstLine(output []byte) string {
924 if i := bytes.IndexAny(output, "\n"); i >= 0 {
925 return string(output)[0:i]
926 }
927 return string(output)
928}
929
930func parseCloneArgs(extraArgs []string) (args []string, target string) {
931 args = extraArgs

Callers 7

CurrentBranchMethod · 0.85
ConfigMethod · 0.85
PushRevisionMethod · 0.85
ToplevelDirMethod · 0.85
GitDirMethod · 0.85
PathFromRootMethod · 0.85
RemoteURLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected