MCPcopy
hub / github.com/mislav/hub / firstLine

Function firstLine

git/git.go:345–351  ·  view source on GitHub ↗
(output string)

Source from the content-addressed store, hash-verified

343}
344
345func firstLine(output string) string {
346 if i := strings.Index(output, "\n"); i >= 0 {
347 return output[0:i]
348 } else {
349 return output
350 }
351}
352
353func gitCmd(args ...string) *cmd.Cmd {
354 cmd := cmd.New("git")

Callers 8

VersionFunction · 0.85
DirFunction · 0.85
WorkdirNameFunction · 0.85
EditorFunction · 0.85
SymbolicRefFunction · 0.85
SymbolicFullNameFunction · 0.85
RefFunction · 0.85
gitGetConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…