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

Method current_branch

gitless/core.py:216–221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

214
215 @property
216 def current_branch(self):
217 if self.git_repo.head_is_detached:
218 b = self.git_repo.lookup_reference('GL_FUSE_ORIG_HEAD').resolve()
219 else:
220 b = self.git_repo.head
221 return self.lookup_branch(b.shorthand)
222
223 def create_branch(self, name, head):
224 try:

Callers

nothing calls this directly

Calls 1

lookup_branchMethod · 0.95

Tested by

no test coverage detected