MCPcopy Create free account
hub / github.com/bluekeyes/patch2pr / entriesToMap

Function entriesToMap

applier_test.go:200–212  ·  view source on GitHub ↗
(entries []*github.TreeEntry)

Source from the content-addressed store, hash-verified

198}
199
200func entriesToMap(entries []*github.TreeEntry) map[string]treeFile {
201 m := make(map[string]treeFile)
202 for _, entry := range entries {
203 if entry.GetType() != "blob" {
204 continue
205 }
206 m[entry.GetPath()] = treeFile{
207 Mode: entry.GetMode(),
208 SHA: entry.GetSHA(),
209 }
210 }
211 return m
212}
213
214func getGitMode(info fs.FileInfo) string {
215 if info.Mode()&fs.ModeSymlink > 0 {

Callers 1

assertPatchResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected