MCPcopy Create free account
hub / github.com/go-git/go-git / objectsToPush

Function objectsToPush

remote.go:1394–1403  ·  view source on GitHub ↗
(commands []*packp.Command)

Source from the content-addressed store, hash-verified

1392}
1393
1394func 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
1405func referencesToHashes(refs storer.ReferenceStorer) ([]plumbing.Hash, error) {
1406 iter, err := refs.IterReferences()

Callers 1

PushContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected