()
| 51 | } |
| 52 | |
| 53 | func (t *treeNoder) Hash() []byte { |
| 54 | if t.mode == filemode.Deprecated { |
| 55 | return append(t.hash[:], filemode.Regular.Bytes()...) |
| 56 | } |
| 57 | return append(t.hash[:], t.mode.Bytes()...) |
| 58 | } |
| 59 | |
| 60 | func (t *treeNoder) Name() string { |
| 61 | return t.name |