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

Method with_commit

pygit2/branches.py:104–106  ·  view source on GitHub ↗
(self, commit: Commit | Oid | str | None)

Source from the content-addressed store, hash-verified

102 )
103
104 def with_commit(self, commit: Commit | Oid | str | None) -> 'Branches':
105 assert self._commit is None
106 return Branches(self._repository, self._flag, commit)
107
108 def __contains__(self, name: str) -> bool:
109 return self.get(name) is not None

Callers 1

Calls 1

BranchesClass · 0.85

Tested by 1