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

Method branch

pygit2/submodules.py:165–168  ·  view source on GitHub ↗

Branch that is to be tracked by the submodule.

(self)

Source from the content-addressed store, hash-verified

163
164 @property
165 def branch(self):
166 """Branch that is to be tracked by the submodule."""
167 branch = C.git_submodule_branch(self._subm)
168 return ffi.string(branch).decode('utf-8')
169
170 @property
171 def head_id(self) -> Oid | None:

Callers

nothing calls this directly

Calls 1

stringMethod · 0.80

Tested by

no test coverage detected