MCPcopy Create free account
hub / github.com/libgit2/pygit2 / __init__

Method __init__

test/test_refdb_backend.py:43–44  ·  view source on GitHub ↗
(self, source: pygit2.RefdbBackend)

Source from the content-addressed store, hash-verified

41# design.
42class ProxyRefdbBackend(pygit2.RefdbBackend):
43 def __init__(self, source: pygit2.RefdbBackend) -> None:
44 self.source = source
45
46 def exists(self, ref: str) -> bool:
47 return self.source.exists(ref)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected