This commit is contained in:
Adam Majer 2024-07-14 23:59:48 +02:00
parent a2f2631bdf
commit 3c4f1d103c

View File

@ -369,6 +369,13 @@ func parseGitCommit(data <-chan byte) (commit, error) {
func parseTreeEntry(data <-chan byte) (tree_entry, error) {
var e tree_entry
for c:=<-data; c != ' '; c=<-data {
e.mode = e.mode * 8 + (c - '0')
}
for c:=<-data; c != '\x00'; c=<-data {
e.name = append(e.name, c)
}
return e, nil
}