MCPcopy
hub / github.com/gitless-vcs/gitless / lookup_branch

Method lookup_branch

gitless/core.py:234–238  ·  view source on GitHub ↗
(self, branch_name)

Source from the content-addressed store, hash-verified

232 str(e).replace('refs/heads/', '').replace('reference', 'branch'))
233
234 def lookup_branch(self, branch_name):
235 git_branch = self.git_repo.lookup_branch(
236 branch_name, pygit2.GIT_BRANCH_LOCAL)
237 if git_branch:
238 return Branch(git_branch, self)
239
240 def listall_branches(self):
241 """Return a list with the names of all the branches in this repository.

Callers 1

current_branchMethod · 0.95

Calls 2

BranchClass · 0.85
lookup_branchMethod · 0.45

Tested by

no test coverage detected