MCPcopy Create free account
hub / github.com/go-git/go-git / indent

Function indent

plumbing/object/commit.go:445–456  ·  view source on GitHub ↗
(t string)

Source from the content-addressed store, hash-verified

443}
444
445func indent(t string) string {
446 var output []string
447 for _, line := range strings.Split(t, "\n") {
448 if len(line) != 0 {
449 line = " " + line
450 }
451
452 output = append(output, line)
453 }
454
455 return strings.Join(output, "\n")
456}
457
458// CommitIter is a generic closable interface for iterating over commits.
459type CommitIter interface {

Callers 1

StringMethod · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected