MCPcopy Index your code
hub / github.com/git-bug/git-bug / prepareTreeEntries

Function prepareTreeEntries

repository/tree_entry.go:73–81  ·  view source on GitHub ↗
(entries []TreeEntry)

Source from the content-addressed store, hash-verified

71}
72
73func prepareTreeEntries(entries []TreeEntry) bytes.Buffer {
74 var buffer bytes.Buffer
75
76 for _, entry := range entries {
77 buffer.WriteString(entry.Format())
78 }
79
80 return buffer
81}
82
83func readTreeEntries(s string) ([]TreeEntry, error) {
84 split := strings.Split(strings.TrimSpace(s), "\n")

Callers 1

StoreTreeMethod · 0.85

Calls 1

FormatMethod · 0.45

Tested by

no test coverage detected