Format the entry as a git ls-tree compatible line
()
| 45 | |
| 46 | // Format the entry as a git ls-tree compatible line |
| 47 | func (entry TreeEntry) Format() string { |
| 48 | return fmt.Sprintf("%s %s\t%s\n", entry.ObjectType.Format(), entry.Hash, entry.Name) |
| 49 | } |
| 50 | |
| 51 | func (ot ObjectType) Format() string { |
| 52 | switch ot { |
no outgoing calls