Adds the (sorted) shallows: "shallow" SP hash EOL
(e *advRefsEncoder)
| 150 | |
| 151 | // Adds the (sorted) shallows: "shallow" SP hash EOL |
| 152 | func encodeShallow(e *advRefsEncoder) encoderStateFn { |
| 153 | sorted := sortShallows(e.data.Shallows) |
| 154 | for _, hash := range sorted { |
| 155 | if e.err = e.pe.Encodef("shallow %s\n", hash); e.err != nil { |
| 156 | return nil |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | return encodeFlush |
| 161 | } |
| 162 | |
| 163 | func sortShallows(c []plumbing.Hash) []string { |
| 164 | ret := []string{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…