MCPcopy Create free account
hub / github.com/driusan/dgit / HaveObject

Method HaveObject

git/client.go:561–612  ·  view source on GitHub ↗

Determine whether or not the object represented by id exists in the Client's object directory. Returns a bool if it was found, and the basename of the packfile pack/idx pair that it was contained in (the zero value if it's stored loosely in the repo), and possibly an error if anything went wrong.

(id Sha1)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

getObjectMethod · 0.95
WriteObjectMethod · 0.95
MkTreeFunction · 0.80
WriteTreeFromIndexFunction · 0.80
fetchPackDoneFunction · 0.80
FsckFunction · 0.80
verifyHeadFunction · 0.80
SendPackFunction · 0.80

Calls 7

FileTypeAlias · 0.85
v2PackIndexHasSha1Function · 0.85
NameMethod · 0.80
StringMethod · 0.65
CloseMethod · 0.65
ExistsMethod · 0.45
OpenMethod · 0.45

Tested by

no test coverage detected