MCPcopy
hub / github.com/go-git/go-git / objectExists

Function objectExists

remote.go:1088–1095  ·  view source on GitHub ↗
(s storer.EncodedObjectStorer, h plumbing.Hash)

Source from the content-addressed store, hash-verified

1086}
1087
1088func objectExists(s storer.EncodedObjectStorer, h plumbing.Hash) (bool, error) {
1089 _, err := s.EncodedObject(plumbing.AnyObject, h)
1090 if err == plumbing.ErrObjectNotFound {
1091 return false, nil
1092 }
1093
1094 return true, err
1095}
1096
1097func checkFastForwardUpdate(s storer.EncodedObjectStorer, remoteRefs storer.ReferenceStorer, cmd *packp.Command) error {
1098 if cmd.Old == plumbing.ZeroHash {

Callers 2

fetchMethod · 0.85
getWantsFunction · 0.85

Calls 1

EncodedObjectMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…