(commands []*packp.Command)
| 1392 | } |
| 1393 | |
| 1394 | func objectsToPush(commands []*packp.Command) []plumbing.Hash { |
| 1395 | objects := make([]plumbing.Hash, 0, len(commands)) |
| 1396 | for _, cmd := range commands { |
| 1397 | if cmd.New == plumbing.ZeroHash { |
| 1398 | continue |
| 1399 | } |
| 1400 | objects = append(objects, cmd.New) |
| 1401 | } |
| 1402 | return objects |
| 1403 | } |
| 1404 | |
| 1405 | func referencesToHashes(refs storer.ReferenceStorer) ([]plumbing.Hash, error) { |
| 1406 | iter, err := refs.IterReferences() |